summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfuzz <fuzzzzzzzzzzzzzzzzzz@gmail.com>2014-06-29 06:39:54 (GMT)
committerTaichi Nishimura <fuzzzzzzzzzzzzzzzzzz@gmail.com>2014-06-30 12:34:07 (GMT)
commit26d601e5f7b779fc9a2cec7ec4aa74799a8938e4 (patch)
tree4bf2e320bd92821147901339ea54627c7ccda963
parentff11d4b4161d6dd231d4a33adeb0a0805ec2f81c (diff)
downloadandroid_packages_apps_Trebuchet-26d601e5f7b779fc9a2cec7ec4aa74799a8938e4.zip
android_packages_apps_Trebuchet-26d601e5f7b779fc9a2cec7ec4aa74799a8938e4.tar.gz
android_packages_apps_Trebuchet-26d601e5f7b779fc9a2cec7ec4aa74799a8938e4.tar.bz2
Trebuchet: Adjust the grid size screen layout for sw600dp
Comfortable - before: http://i.imgur.com/yZ1cM9q after: http://i.imgur.com/DQNsEfD Cozy - before: http://i.imgur.com/EeAgygS after: http://i.imgur.com/T7Nuauz Condensed - before: http://i.imgur.com/b2nTUxJ after: http://i.imgur.com/ZoAI4gn Custom: - before: http://i.imgur.com/H2rrvr3 after: http://i.imgur.com/RSQxwfQ PS2: Makes dynamic_grid_size_image overridable PS3: Fix a typo in the commit message Change-Id: Ic6b68953758a691cd032ba27030fa7a688efb293
-rw-r--r--res/layout/dynamic_grid_size_screen.xml4
-rw-r--r--res/values-sw600dp/dimens.xml4
-rw-r--r--res/values/dimens.xml3
3 files changed, 9 insertions, 2 deletions
diff --git a/res/layout/dynamic_grid_size_screen.xml b/res/layout/dynamic_grid_size_screen.xml
index 9aca726..38db4b0 100644
--- a/res/layout/dynamic_grid_size_screen.xml
+++ b/res/layout/dynamic_grid_size_screen.xml
@@ -36,8 +36,8 @@
<ImageView
android:id="@+id/dynamic_grid_size_image"
- android:layout_width="150dp"
- android:layout_height="150dp"
+ android:layout_width="@dimen/dynamic_grid_size_image_width"
+ android:layout_height="@dimen/dynamic_grid_size_image_height"
android:layout_gravity="center_horizontal"
android:adjustViewBounds="true"
android:layout_marginBottom="@dimen/grid_padding"/>
diff --git a/res/values-sw600dp/dimens.xml b/res/values-sw600dp/dimens.xml
index 929b325..3360d30 100644
--- a/res/values-sw600dp/dimens.xml
+++ b/res/values-sw600dp/dimens.xml
@@ -26,4 +26,8 @@
<dimen name="sliding_panel_padding">180dp</dimen>
<dimen name="overview_panel_button_spacing">32dp</dimen>
+
+ <!-- Dynamic Grid settings -->
+ <dimen name="dynamic_grid_size_image_width">300dp</dimen>
+ <dimen name="dynamic_grid_size_image_height">300dp</dimen>
</resources>
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 726b79f..9641269 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -118,4 +118,7 @@
<dimen name="grid_padding">15dp</dimen>
<dimen name="grid_custom_text">50dp</dimen>
+
+ <dimen name="dynamic_grid_size_image_width">150dp</dimen>
+ <dimen name="dynamic_grid_size_image_height">150dp</dimen>
</resources>