Hello! I am working on a project that has a horizontal, scrolling listview. I also have button that is supposed to allow the user to go to the last index and the layout should auto-scroll to the last index.
(listView.LayoutManager as LinearLayout).ScrollToRowIndex(indexNum);
However, the above line only takes the screen to the edge of the current visible page, not to the end of the list, even though the index is the last item. Do you know why that is? Is there something I'm missing?
If I scroll all the way to the end, then all the way back to the beginning, the button will work as expected, taking you all the way to the end. But upon first loading, it will only take you to the end of the visible list.