jess-anders / two-way-gridview

An Android GridView that can be configured to scroll horizontally or vertically
650 stars 261 forks source link

Linking next and previous buttons #42

Open HongEuiChan opened 7 months ago

HongEuiChan commented 7 months ago

I tried to use smoothScrollToPosition or setSelection. The problem is that smoothScrollToPosition only works when the offset is greater than 1, If setSelection returns to 0 position, the UI is broken.

Please help me if I am wrong.

Item placement is 3 * 3 per screen and scrolls horizontally. ex) setSelection(pageOffset > 0 ? 10 : 1);