views:

81

answers:

3

I have lot of items on the screen, and I need to use Scrollbar so the user can go down, But the scroll is not visible, How is posssible to addd scrollbar to a liniearlayout?

+3  A: 

Wrap the linear layout with a <ScrollView>

See here for an example.

Bryan Denny
A: 
<ScrollView android:id="@+id/scroll" android:layout_width="fill_parent"
    android:layout_height="wrap_content">
    <LinearLayout android:id="@+id/container"
        android:orientation="vertical" android:layout_width="fill_parent"
        android:layout_height="wrap_content"></LinearLayout>

</ScrollView>
krunal shah
A: 

You can add an atrribute in linearLayout: android:scrollbars="vertical"

alishan