Skip to content

Commit 9e43c67

Browse files
Grid View Item Click Issue
1 parent 0f52886 commit 9e43c67

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

AndroidCustomGridView/res/layout/activity_main.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
android:numColumns="auto_fit"
1616
android:verticalSpacing="5dp"
1717
android:drawSelectorOnTop="true"
18-
android:stretchMode="columnWidth">
18+
android:stretchMode="columnWidth" >
1919
</GridView>
2020

2121
</RelativeLayout>

AndroidCustomGridView/res/layout/row_grid.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@
77
android:padding="5dp"
88
android:clickable="false"
99
android:background="@drawable/grid_color_selector"
10-
android:focusable="false"
11-
>
10+
android:focusable="false">
1211

1312
<ImageView
1413
android:id="@+id/image"
1514
android:layout_width="100dp"
16-
android:layout_height="100dp"
17-
>
15+
android:layout_height="100dp" >
1816
</ImageView>
1917

2018
<TextView
@@ -23,8 +21,7 @@
2321
android:layout_height="wrap_content"
2422
android:layout_marginTop="5dp"
2523
android:gravity="center"
26-
android:textSize="12sp"
27-
>
24+
android:textSize="12sp" >
2825
</TextView>
2926

3027
</LinearLayout>

0 commit comments

Comments
 (0)