diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-11-16 17:18:12 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2011-11-17 19:48:39 +0800 |
commit | 0ca031ca9fef394f27b7cc9722ffc5a198cb964e (patch) | |
tree | 27e459276721e2d26018b8ef25c22792617848e1 /res/values | |
parent | 948e75e8e3fd2ec98a08e65efdb6e5eb6d02c33b (diff) | |
download | LegacyCamera-0ca031ca9fef394f27b7cc9722ffc5a198cb964e.zip LegacyCamera-0ca031ca9fef394f27b7cc9722ffc5a198cb964e.tar.gz LegacyCamera-0ca031ca9fef394f27b7cc9722ffc5a198cb964e.tar.bz2 |
Rotate priority indicators according to the device orientation.
+ Do not show flash indicator if it is off.
bug:5039279
Change-Id: I329b63d04f46fbe23f5ade3e4cacf446ce41f98c
Diffstat (limited to 'res/values')
-rw-r--r-- | res/values/dimens.xml | 2 | ||||
-rw-r--r-- | res/values/styles.xml | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 7d12a18..97372a2 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -51,4 +51,6 @@ <dimen name="effect_setting_clear_text_size">20dp</dimen> <dimen name="effect_setting_clear_text_min_height">45dp</dimen> <dimen name="effect_setting_type_text_left_padding">16dp</dimen> + <dimen name="onscreen_indicators_height">28dp</dimen> + <dimen name="onscreen_exposure_indicator_text_size">15dp</dimen> </resources> diff --git a/res/values/styles.xml b/res/values/styles.xml index 204a650..68e450a 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -139,14 +139,18 @@ <item name="android:background">@android:color/transparent</item> </style> <style name="OnScreenIndicator"> - <item name="android:layout_height">28dp</item> + <item name="android:layout_height">wrap_content</item> <item name="android:layout_width">wrap_content</item> - <item name="android:layout_gravity">center_horizontal</item> <item name="android:focusable">false</item> <item name="android:visibility">gone</item> - <item name="android:rotation">90</item> <item name="android:padding">1dp</item> </style> + <style name="OnScreenIndicators"> + <item name="android:layout_marginTop">8dp</item> + <item name="android:layout_marginBottom">@dimen/indicator_bar_width</item> + <item name="android:layout_marginLeft">8dp</item> + <item name="android:layout_marginRight">8dp</item> + </style> <style name="ViewfinderLableLayout"> <item name="android:layout_width">match_parent</item> <item name="android:layout_height">match_parent</item> |