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 4568062
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:01:21+00:00 2026-05-21T19:01:21+00:00

I have expanded list view, which contains 15 items, when i reaches to the

  • 0

I have expanded list view, which contains 15 items, when i reaches to the bottom i load 15 more. When i get the 15 more, i called adapter.notifyDataSetChanged() , then list moves to the top, so lost my current selection. I wanted, list should add more but it should goes to bottom, my selection stat should not be changed, like gmail app. They added new items at bottom silently. How to achieve this?

  • 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-05-21T19:01:22+00:00Added an answer on May 21, 2026 at 7:01 pm

    You can set the selectionMode of your ListView to ListView.CHOICE_MODE_SINGLE.

    listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
    

    By default ListView has a CHOICE_MODE_NONE. Setting it to either CHOICE_MODE_SINGLE or CHOICE_MODE_MULTIPLE will keep your selected item(s)’s state.

    You can read more on this topic in Android Developers’ article about Touch Mode

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a button R1 which is dynamic and create in an expanded list
I have an expanded list view that have check boxes in parent nodes as
I have a model window that contains expander control. This expander control when expanded
I have a problem with my listview which contains an ImageView and a few
I have a collapsed list. On Ajax success, list auto-expands. I'm trying to get
I have a list of items & they are holding images, each image is
I have a row in a list view with 3 fields. Icon to the
I have ComboBox . When I click on item from expanded list, ComboBox select
Is it possible to get a list of events (with recurring events expanded) out
I have list of categories , some have sub-category and some have sub-sub-category which

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.