scroll bar not showing for the entire screen

Quickly share your Android Code Snippets here...

scroll bar not showing for the entire screen

Postby Pravy » Fri Jun 17, 2011 8:14 am

I have used the scroll view in my application. if there are are too many items , the vertical scroll bar appears. But if there are only few items ,then the vertical scroll bar doesn't appear for the full screen. Is it possible to show a scroll bar for the full screen?
Code: Select all
<ScrollView android:id="@+id/tile_view"
                android:layout_width="fill_parent" android:layout_height="fill_parent">
                <LinearLayout android:orientation="vertical"
                    android:layout_width="wrap_content" android:layout_height="wrap_content">
                    <Button android:id="@+id/banner_btn" android:layout_width="wrap_content"
                        android:layout_height="wrap_content" android:background="@drawable/banner"
                        android:textColor="@android:color/white" android:textStyle="bold"
                        android:ellipsize="end" />

                    <LinearLayout android:id="@+id/left_right_columns"
                        android:paddingLeft="10dip" android:paddingRight="10dip"
                        android:paddingBottom="10dip" android:layout_width="fill_parent"
                        android:orientation="horizontal" android:layout_height="wrap_content">

                        <LinearLayout android:id="@+id/left_column"
                            android:layout_marginRight="9dip" android:layout_width="wrap_content"
                            android:layout_height="wrap_content" android:orientation="vertical" />

                        <LinearLayout android:id="@+id/right_column"
                            android:layout_width="wrap_content" android:layout_height="wrap_content"
                            android:orientation="vertical" />
Posts: 7
Joined: Mon May 23, 2011 1:24 pm


Return to Code Snippets for Android

Who is online

Users browsing this forum: No registered users and 3 guests