Skip to content

Not able to implement Scroll to grid view index based on user input #36

Description

@techyrajeev

I am using <dev.dworks.libs.astickyheader.ui.PinnedSectionGridView>.
Based on a floating list popup window index click I want to focus ( scroll) to that part of grid view.

I am passing the selection index to go to that section of gridview but nothing seems to happen.

GridView is not scrolling to selected position in grid view.

When selection happens I am saving the current position.
int index = gridview.getFirstVisiblePosition(); And when you come back to the gridview then trying to do
gridview.smoothScrollToPosition(int index)

                //gridView.setSelection(position);
                int index = gridView.getFirstVisiblePosition();

                ListAdapter adapter = gridView.getAdapter();

                gridView.smoothScrollToPosition(index + position);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions