The gallery component is used primarily for landscape display of image lists, although it is routinely done. The gallery component can only display the specified image in a limited way. That is, if you specify 10 images for the gallery component, the Gallery component will not continue to display when it is displayed to the 10th sheet. It doesn't matter most of the time, but in some cases we want the image to be displayed to the last one and then the 1th one to start showing, which is the loop display. To implement this style of gallery components, you need to make improvements to the gallery adapter objects.
Traditional usage of gallery components
Review the traditional usage of the gallery component before implementing the gallery component that can iterate through the display of the image. The gallery component can display a list of images horizontally, and when you click the last image in the current image, the image list moves to the left one, and the image list moves to the right when you click the previous image in the current image. You can also move the image list to the left and right by dragging. The effect of the 1th image currently displayed is shown in Figure 1. The gallery component displays the effect of the last image as shown in Figure 2.