Hi all,
I am using below mentioned code for grid view and grid view_cell
component. After using it scroll bar is appearing. once a while it had
removed but i dont the reason how and why it appear and disappear
<GridView
android:id="@+id/Grid"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:horizontalSpacing="-1px"
android:verticalSpacing="-1px"
android:listSelector="#FF00007F"
android:cacheColorHint="#00000000">
</GridView>
and grid component is (a button with boundary)
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<View
android:id="@+id/paddingView1"
android:layout_width="1dip"
android:layout_height="fill_parent"
android:background="#FFFFFFFF"/>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<View
android:id="@+id/paddingView2"
android:layout_width="fill_parent"
android:layout_height="1dip"
android:background="#FFFFFFFF">
</View>
<Button
android:id="@+id/gridCellBtn"
android:layout_width="45dip"
android:layout_height="wrap_content"
android:textSize="18dip"
android:lines="1"
android:gravity="center"
android:padding="5dip">
</Button>
<View
android:id="@+id/paddingView3"
android:layout_width="fill_parent"
android:layout_height="1dip"
android:background="#FFFFFFFF">
</View>
</LinearLayout>
<View
android:id="@+id/paddingView4"
android:layout_width="1dip"
android:layout_height="fill_parent"
android:background="#FFFFFFFF"/>
</LinearLayout>
On Feb 17, 10:27 pm, "cool.manish" <[email protected]> wrote:
> Hi,
>
> I am using grid view. It is not displaying all contents and adding
> one
> scroll bar. after scrolling i get to know that their are other items
> available. There is lots of space available on the screen but even
> then it is displaying scrollbar
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en