diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-04-27 15:09:39 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-04-27 15:09:39 -0700 |
commit | 4aebaf640b685b42767ef1077178dc5d2084e731 (patch) | |
tree | a267dde5065dcce2f170f5d57dffac3fbbb84452 /res/layout | |
parent | 124e6c82c2a0bae229717d8b4595b14d91616263 (diff) | |
download | dsub-4aebaf640b685b42767ef1077178dc5d2084e731.tar.gz dsub-4aebaf640b685b42767ef1077178dc5d2084e731.tar.bz2 dsub-4aebaf640b685b42767ef1077178dc5d2084e731.zip |
Fix grid lists expanding infinitely
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/grid_view.xml | 2 | ||||
-rw-r--r-- | res/layout/unscrollable_grid_view.xml | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/res/layout/grid_view.xml b/res/layout/grid_view.xml index 549f9ae5..e2bcd49f 100644 --- a/res/layout/grid_view.xml +++ b/res/layout/grid_view.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?>
-<github.daneren2005.dsub.view.UnscrollableGridView xmlns:android="http://schemas.android.com/apk/res/android"
+<GridView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gridview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
diff --git a/res/layout/unscrollable_grid_view.xml b/res/layout/unscrollable_grid_view.xml new file mode 100644 index 00000000..549f9ae5 --- /dev/null +++ b/res/layout/unscrollable_grid_view.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?>
+<github.daneren2005.dsub.view.UnscrollableGridView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/gridview"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:numColumns="auto_fit"
+ android:horizontalSpacing="10dp"
+ android:verticalSpacing="10dp"
+ android:gravity="center"
+ android:stretchMode="columnWidth"/>
\ No newline at end of file |