Android Indoor or Circular Horizontal ListView

I have a horizontal list . I need the listview to be closed. For example, if the last item is reached in Listview , then display the first item below the last item. This means that the element must be in a circular format. And if I scroll the first element, it should show the last element before the first element. I want a scroll for both sides.

The image below can say exactly what I want Horizontal listview

The first image displays 5 elements, and when scrolling Listview it should scroll through the elements. As shown in the picture is the second image . Thanks in advance.

>
+6
source share
1 answer

According to your requirement, you want a circular / endless view of the horizontal scroll list ,

This is an InfiniteScrollView that can help. You need to update this library according to your requirement and change ImageView to any other view that you want to scroll horizontally.

Edit - The solution below works to view the scroll list in a circular way on only one side:

Check circular-list to implement a circular list adapter. And since your list view is horizontal, browse this library to create a custom horizontal list.

Happy coding :)

+3
source

All Articles