aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-05-02 18:37:19 -0700
committerScott Jackson <daneren2005@gmail.com>2014-05-02 18:37:19 -0700
commit8fdbe0f4baa7027a8aa2af45440a2e2558f5f939 (patch)
treed21ca3c4dcf53869b7ab10b80e3d0e744b55a4ae
parent6313f3bb976fe62ea6f3189c3a68f12cdc3d18da (diff)
downloaddsub-8fdbe0f4baa7027a8aa2af45440a2e2558f5f939.tar.gz
dsub-8fdbe0f4baa7027a8aa2af45440a2e2558f5f939.tar.bz2
dsub-8fdbe0f4baa7027a8aa2af45440a2e2558f5f939.zip
Add more cells for landscape/tablets
-rw-r--r--res/layout/grid_view.xml2
-rw-r--r--res/layout/unscrollable_grid_view.xml2
-rw-r--r--res/values-land/integers.xml4
-rw-r--r--res/values-large/integers.xml4
-rw-r--r--res/values/integers.xml4
5 files changed, 14 insertions, 2 deletions
diff --git a/res/layout/grid_view.xml b/res/layout/grid_view.xml
index 4c0571be..40674c8d 100644
--- a/res/layout/grid_view.xml
+++ b/res/layout/grid_view.xml
@@ -4,7 +4,7 @@
android:layout_width="fill_parent"
android:layout_height="0dip"
android:layout_weight="1.0"
- android:numColumns="auto_fit"
+ android:numColumns="@integer/Grid.Columns"
android:horizontalSpacing="10dp"
android:verticalSpacing="10dp"
android:gravity="center"
diff --git a/res/layout/unscrollable_grid_view.xml b/res/layout/unscrollable_grid_view.xml
index 6e3f0a8c..d63eeac7 100644
--- a/res/layout/unscrollable_grid_view.xml
+++ b/res/layout/unscrollable_grid_view.xml
@@ -3,7 +3,7 @@
android:id="@+id/gridview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
- android:numColumns="auto_fit"
+ android:numColumns="@integer/Grid.Columns"
android:horizontalSpacing="10dp"
android:verticalSpacing="10dp"
android:gravity="center"
diff --git a/res/values-land/integers.xml b/res/values-land/integers.xml
new file mode 100644
index 00000000..93883e2a
--- /dev/null
+++ b/res/values-land/integers.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <integer name="Grid.Columns">3</integer>
+</resources> \ No newline at end of file
diff --git a/res/values-large/integers.xml b/res/values-large/integers.xml
new file mode 100644
index 00000000..93883e2a
--- /dev/null
+++ b/res/values-large/integers.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <integer name="Grid.Columns">3</integer>
+</resources> \ No newline at end of file
diff --git a/res/values/integers.xml b/res/values/integers.xml
new file mode 100644
index 00000000..729cf1cd
--- /dev/null
+++ b/res/values/integers.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <integer name="Grid.Columns">2</integer>
+</resources> \ No newline at end of file