diff options
author | Chung-yih Wang <cywang@google.com> | 2011-10-18 12:47:44 +0800 |
---|---|---|
committer | Chung-yih Wang <cywang@google.com> | 2011-11-01 15:31:16 +0800 |
commit | d33109730e0ab81230f84e2bd35599e8e24fc4ba (patch) | |
tree | df80db1d6647bf952f495a81d8ab67ee7498880d /res/values | |
parent | abf79a3e25e6c631275e9f81424c0aa25ec9191b (diff) | |
download | LegacyCamera-d33109730e0ab81230f84e2bd35599e8e24fc4ba.zip LegacyCamera-d33109730e0ab81230f84e2bd35599e8e24fc4ba.tar.gz LegacyCamera-d33109730e0ab81230f84e2bd35599e8e24fc4ba.tar.bz2 |
Change the default orientation to portrait.
bug:5446617
Since the orientation is mainly portrait on phones, the default
orientation of an application will decide if the window animation will
be played before it starts. In order to reduce the launch time of Camera
apps, this change is to skip the window animations by changing the default
orientation to portrait.
Change-Id: I6682ab408d7e8d1f0580f3c1600b6c9c3d6a7f6e
Diffstat (limited to 'res/values')
-rw-r--r-- | res/values/dimens.xml | 2 | ||||
-rw-r--r-- | res/values/styles.xml | 27 |
2 files changed, 17 insertions, 12 deletions
diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 6b3b279..9618ae1 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -41,7 +41,7 @@ <dimen name="setting_item_list_margin">14dp</dimen> <dimen name="indicator_bar_width">48dp</dimen> <dimen name="popup_title_text_size">22dp</dimen> - <dimen name="popup_title_frame_min_height">60dp</dimen> + <dimen name="popup_title_frame_min_height">49dp</dimen> <dimen name="big_setting_popup_window_width">320dp</dimen> <dimen name="setting_item_icon_width">28dp</dimen> <dimen name="effect_setting_item_icon_width">40dp</dimen> diff --git a/res/values/styles.xml b/res/values/styles.xml index 9127479..bc3c301 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -38,10 +38,10 @@ <item name="android:windowExitAnimation">@anim/on_screen_hint_exit</item> </style> <style name="ReviewControlIcon"> - <item name="android:layout_height">50dp</item> - <item name="android:layout_width">75dp</item> + <item name="android:layout_width">50dp</item> + <item name="android:layout_height">75dp</item> <item name="android:gravity">center</item> - <item name="android:layout_centerHorizontal">true</item> + <item name="android:layout_centerVertical">true</item> <item name="android:clickable">true</item> <item name="android:focusable">true</item> <item name="android:background">@drawable/bg_pressed</item> @@ -72,9 +72,9 @@ <style name="SettingPopupWindow"> <item name="android:layout_width">wrap_content</item> <item name="android:layout_height">wrap_content</item> - <item name="android:layout_centerVertical">true</item> - <item name="android:layout_toLeftOf">@+id/indicator_control</item> - <item name="android:layout_marginRight">@dimen/setting_popup_right_margin</item> + <item name="android:layout_centerHorizontal">true</item> + <item name="android:layout_above">@+id/indicator_control</item> + <item name="android:layout_marginBottom">@dimen/setting_popup_right_margin</item> <item name="android:visibility">gone</item> </style> <style name="PopupTitleText"> @@ -85,7 +85,6 @@ <item name="android:singleLine">true</item> <item name="android:textColor">@color/popup_title_color</item> <item name="android:layout_marginLeft">10dp</item> - <item name="android:paddingLeft">16dp</item> </style> <style name="PopupTitleSeperator"> <item name="android:layout_width">match_parent</item> @@ -169,8 +168,8 @@ <style name="PanoViewHorizontalBar"> <item name="android:background">#000000</item> <item name="android:alpha">1.0</item> - <item name="android:layout_width">match_parent</item> - <item name="android:layout_height">0dp</item> + <item name="android:layout_width">0dp</item> + <item name="android:layout_height">match_parent</item> <item name="android:layout_weight">0.5</item> </style> <style name="PanoCustomDialogText"> @@ -179,8 +178,8 @@ <style name="ReviewThumbnail"> <item name="android:layout_width">52dp</item> <item name="android:layout_height">52dp</item> - <item name="android:layout_alignParentTop">true</item> - <item name="android:layout_centerHorizontal">true</item> + <item name="android:layout_alignParentRight">true</item> + <item name="android:layout_centerVertical">true</item> </style> <style name="AnimationPopup" parent="android:Animation"> <item name="android:windowEnterAnimation">@anim/share_popup_enter</item> @@ -232,4 +231,10 @@ <item name="android:paddingBottom">4dp</item> <item name="android:background">@android:drawable/divider_horizontal_dark</item> </style> + <style name="OneRowGrid"> + <item name="android:stretchMode">none</item> + <item name="android:columnWidth">@dimen/share_item_width</item> + <item name="android:layout_width">match_parent</item> + <item name="android:layout_height">match_parent</item> + </style> </resources> |