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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:46:14+00:00 2026-05-23T09:46:14+00:00

Hi I have a listview with 11 elements. sometimes I want the user can

  • 0

Hi I have a listview with 11 elements. sometimes I want the user can scoll upto maximum 9th element and sometimes i want to scroll upto 5th element. So can we set maximum scroll position in listview depending on condition?

Thanks
Sunil

  • 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-23T09:46:14+00:00Added an answer on May 23, 2026 at 9:46 am

    Why not create an OnTouchListener and attach it to your ListView. In the onTouch event, check whether the maximum position has been exceeded, and call scrollTo to prevent the scroll from going past the maximum.

    Alternatively, you could simply modify your ListAdapter to sometimes only list 9 or 5 elements when you want to limit the scroll.

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

Sidebar

Related Questions

If i have a ListView (called MainList) and want to bind to elements in
What I have now is a ListView of TextView elements. each TextView element displays
How can I set up the animation when the user selects an element in
I have a ListView with some elements and I want to change the background
I have a ListView control in Asp.Net WebForms which display a set of elements,
I have an Activity in Android, with two elements: EditText ListView When my Activity
I have a GridView in a ListView contained in a ScrollViewer element. I understand
I have a ListView which sometimes I need to put around 10000 items in.
I have a ListView and ObservableCollection in my wpf application. I want to bind
I have a ListView element with a DataTemplate for each ListViewItem defined as follows.

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.