3

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> 

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

Comments

1

You must wrap your linear layout in a scroll view. Here is an example:

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/scroller" android:layout_width="fill_parent" android:layout_height="fill_parent" android:fillViewport="true" > <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"> // YOUR CONTENT GOES HERE </LinearLayout> </ScrollView> 

1 Comment

@Android_Developer Hey. please upvote and Tick my answer if it helped :)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.