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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:08:40+00:00 2026-06-08T02:08:40+00:00

I have a client who wants a conventional scrollbar for ListViews in their application.

  • 0

I have a client who wants a conventional scrollbar for ListViews in their application. The reason why is because this application will be used exclusively with their devices which happen to feature resistive screens. The screens don’t track gestures very well without a stylus and a stylus will not always be available to the user. Hence the conventional scrollbar as a fallback UI control. A fast scroll thumb will not be a useful solution to this problem.

What I have found in the API that is of some use are xml attributes which allow me to approximate the behaviour of the track and thumb such as:

android:scrollbarAlwaysDrawVerticalTrack="true"
android:scrollbarStyle="insideInset"
android:fadeScrollbars="false"

But I haven’t found anything in the API that would take care of including scroll buttons at the top and bottom of the track.

Am I correct in concluding that the API does not provide this functionality?
If so, my only option would be to use a couple of buttons that change the list position. This is a doable solution of course but I wanted to make sure that I wasn’t reinventing yet another wheel.

I have to support as far back as 2.2.

Scrollbar Example:

Scrollbar example

  • 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-08T02:08:42+00:00Added an answer on June 8, 2026 at 2:08 am

    Am I correct in concluding that the API does not provide this functionality?

    Yes, you are. The API does not support buttons for ListView scrolling. You’ll have to implement this functionality yourself.

    Edit: A quick example based on the comments below, extending ListView to support adding of buttons.

    private void init() { // Call this after the ListView is in your existing layout, perhaps in onLayout?
        // The following two lines create a new LinearLayout. If you want to design the layout in XML, you'll have to use LayoutInflater.
        LinearLayout newLayout = new LinearLayout(getContext());
        newLayout.setOrientation(LinearLayout.HORIZONTAL);
        newLayout.setLayoutParams(getLayoutParams());
    
        ViewGroup parent = (ViewGroup) getParent();
        int index = parent.indexOfChild(this);
        parent.removeView(this);
        newLayout.addView(this);
        parent.addView(newLayout, index);
    
        // Now, you can customize your LinearLayout.
        newLayout.addView(...); // Maybe add a vertical LinearLayout to contain your two buttons stacked upon each other?
    }
    

    This is just a rough concept, but it should get you going.

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

Sidebar

Related Questions

I have a client who wants to transition off their old environment into .NET.
We have a client who wants us to extract data from their MS SQL
I have a client who wants me to build an Android version for their
I have a client who wants a page to have their terms of service
I have a client who wants to use their Facebook photos in an iPhone
I have a client who wants to display live 24 hour footage on their
Have a client who wants to move their Wordpress.com blog over to their main
I have a client who wants their app code signed, so we pointed them
Hey guys, I have a client who wants their front site to have a
I have a client who wants their company's Facebook newsfeed/timeline to be displayed on

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.