Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

scroll view in android not generated

I developed a user form which has different widget. i set scrolling option but not able to generate scrollbar so not able scroll upto the last option. following is the code. can any one guide me to solve this problme

 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
   android:orientation="vertical" 
    android:scrollbars="vertical" 
    android:scrollbarAlwaysDrawVerticalTrack="true"
    android:scrollbarStyle="outsideInset" android:isScrollContainer="true"
    android:overScrollMode="always"
    >

  ..............

  </LinearLayout>
like image 787
Android_Developer Avatar asked Jun 06 '26 04:06

Android_Developer


1 Answers

You have to wrap your LinearLayout in a ScrollView. And delete the params of scrolling in your LinearLayout they have no effect.

NOTE: a ScrollView can only have one nested child! So it should be your main layout.

like image 167
Benito Bertoli Avatar answered Jun 08 '26 18:06

Benito Bertoli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!