Skip to content

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

@techyrajeev

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions