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

  • Home
  • SEARCH
  • 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 6799011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:47:52+00:00 2026-05-26T18:47:52+00:00

Scrollview not working in android phone <ScrollView android:id=@+id/scrlListView android:layout_width=match_parent android:layout_marginTop=5sp android:layout_height=213dp> <LinearLayout android:id=@+id/linrListView android:layout_width=match_parent

  • 0

Scrollview not working in android phone

<ScrollView android:id="@+id/scrlListView"
            android:layout_width="match_parent"  
            android:layout_marginTop="5sp"                 
            android:layout_height="213dp">                                  
    <LinearLayout android:id="@+id/linrListView"  
                  android:layout_width="match_parent" 
                  android:layout_height="match_parent">
        <ListView android:id="@+id/listcontact"                         
                  android:layout_width="match_parent" 
                  android:divider="@null"
                  android:dividerHeight="2dp" 
                  android:scrollbars="vertical"
                  android:fastScrollEnabled="true"
                  android:layout_height="281dp"
                  android:cacheColorHint="#00000000">
        </ListView>
    </LinearLayout>
</ScrollView>

Whats the problem in this code?

  • 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-26T18:47:52+00:00Added an answer on May 26, 2026 at 6:47 pm

    A ListView will scroll itself inside its bounds if it needs to. If you haven’t anything else inside the ScrollView, it is unneeded.

    If you have more stuff not shown in your posted layout, the user will have to do a scroll gesture on something that is contained in the ScrollView that isn’t the ListView, otherwise the ListView will consume the scroll gesture and it won’t get passed to the ScrollView.

    You can override this behaviour if you really want, but you may not need to if you only have the ListView.

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

Sidebar

Related Questions

ImageButton event listener is not working. Here's my code (updated): XML: <ScrollView ...> <LinearLayout
I have a ScrollView defined like this: <ScrollView xmlns:android=http://schemas.android.com/apk/res/android android:id=@+id/scrollv android:layout_width=wrap_content android:layout_height=wrap_content> <com.test.myview android
I am working on Android (with Eclipse and SDK) trying to stream video into
I am following Apple's ScrollSuite example, however pinch to zoom is not working. I
Here's the scenario conceptually (excluding linearlayouts) ScrollView Button Checkboxes Spinner ListView (full-size, non-scrolling) AdMob
I am working on a small Android app. Part of what I need for
The events scrolltoVerticalOffset or the scrolltoHorizontalOffset do not change the values of the scrollviewer.
Example: scrollView.scrollEnabled = YES; //scrollEnabled appears black scrollView.pagingEnabled = NO; //pagingEnabled appears purple
for(UIView *subview in [scrollView subviews]) { NSLog(@subviews Count=%d,[[scrollView subviews]count]); //[subview release]; [subview removeFromSuperview]; }
I have a scrollview control that has a StackPanel (Orientation=Vertical) UI Element inside of

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.