Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8695789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:07:19+00:00 2026-06-13T01:07:19+00:00

As mentioned here , Android’s GridView.scrollTo() doesn’t work. The method the solution mentioned, setSelectedPosition

  • 0

As mentioned here, Android’s GridView.scrollTo() doesn’t work. The method the solution mentioned, setSelectedPosition, doesn’t seem to exist in GridView

smoothScrollToPosition does work, but I really don’t want the animation.

For context, I have a CursorAdapter-backed GridView, and I want the view to “reset”, i.e. scroll to the top, when I change the cursor.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T01:07:21+00:00Added an answer on June 13, 2026 at 1:07 am

    I’ve been using setSelection(int position) for this, and it seems to be working just fine. To scroll to the top, just use 0 for position.

    From the docs:

    If in touch mode, the item will not be selected but it will still be positioned appropriately.

    Edit:
    Added code to post setSelection as a Runnable:

    albumsView.post(new Runnable() {
        @Override
        public void run() {
            albumsView.setSelection(0);
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We can read a string array from xml file in android like mentioned here
Currently i am working tabbar application in Android. here i mentioned the code for
I get the error mentioned here: C++ Templates Error: no matching function for call
As I mentioned here , I'm trying to generate HTML from an ASPX page
I am using git configuration mentioned here If I create a new tab and
I can't see it as mentioned here: http://www.c-sharpcorner.com/uploadfile/mahesh/dll12222005064058am/dll.aspx Do I have to activate somehow
I was wondering about the last constructor for std::string mentioned here . It says:
I am using John resig's implementation class mentioned here: http://ejohn.org/blog/simple-javascript-inheritance/ Now I have a
I am new to SQL Server 2008 fill factor, as mentioned here in SQL
I have followed this tutorial here as mentioned exactly I now try to run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.