diff options
| author | Chung-yih Wang <cywang@google.com> | 2011-10-03 11:02:20 +0800 |
|---|---|---|
| committer | Chung-yih Wang <cywang@google.com> | 2011-10-07 14:57:45 +0800 |
| commit | 131f4afb3726dd552e5172116ff1ce454ecaf460 (patch) | |
| tree | 6811b5488f8f270f8f39b199a81dfe69b0838df8 | |
| parent | fc52f4a9bf815633739125883807bfe965cf6009 (diff) | |
| download | LegacyCamera-131f4afb3726dd552e5172116ff1ce454ecaf460.zip LegacyCamera-131f4afb3726dd552e5172116ff1ce454ecaf460.tar.gz LegacyCamera-131f4afb3726dd552e5172116ff1ce454ecaf460.tar.bz2 | |
Fix the margin and padding of the setting popup.
bug:5386702
Change-Id: I4883937b5f0e374d29cee8135d2051628714ed3d
| -rw-r--r-- | res/layout/mode_picker.xml | 3 | ||||
| -rw-r--r-- | res/values-w1024dp/dimens.xml | 2 | ||||
| -rw-r--r-- | res/values-w1280dp/dimens.xml | 2 | ||||
| -rw-r--r-- | res/values/dimens.xml | 2 | ||||
| -rw-r--r-- | res/values/styles.xml | 6 |
5 files changed, 8 insertions, 7 deletions
diff --git a/res/layout/mode_picker.xml b/res/layout/mode_picker.xml index 59edb6f..5cbc882 100644 --- a/res/layout/mode_picker.xml +++ b/res/layout/mode_picker.xml @@ -76,17 +76,20 @@ android:layout_height="wrap_content" android:layout_marginBottom="10dp" android:scaleType="center" + android:background="@drawable/bg_pressed" android:src="@drawable/ic_switch_camera_holo_light" /> <com.android.camera.ui.RotateImageView android:id="@+id/mode_video" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="10dp" android:scaleType="center" + android:background="@drawable/bg_pressed" android:src="@drawable/ic_switch_video_holo_light" /> <com.android.camera.ui.RotateImageView android:id="@+id/mode_panorama" android:layout_width="match_parent" android:layout_height="wrap_content" android:scaleType="center" + android:background="@drawable/bg_pressed" android:src="@drawable/ic_switch_pan_holo_light" /> </LinearLayout> </RelativeLayout> diff --git a/res/values-w1024dp/dimens.xml b/res/values-w1024dp/dimens.xml index f35facc..3044e7d 100644 --- a/res/values-w1024dp/dimens.xml +++ b/res/values-w1024dp/dimens.xml @@ -40,7 +40,7 @@ <dimen name="setting_knob_width">50dp</dimen> <dimen name="setting_item_text_width">130dp</dimen> <dimen name="setting_popup_window_width">410dp</dimen> - <dimen name="setting_item_list_margin">16dp</dimen> + <dimen name="setting_item_list_margin">24dp</dimen> <dimen name="indicator_bar_width">13dp</dimen> <dimen name="popup_title_text_size">22dp</dimen> <dimen name="popup_title_frame_min_height">60dp</dimen> diff --git a/res/values-w1280dp/dimens.xml b/res/values-w1280dp/dimens.xml index b08a935..eed865e 100644 --- a/res/values-w1280dp/dimens.xml +++ b/res/values-w1280dp/dimens.xml @@ -30,7 +30,7 @@ <dimen name="setting_knob_width">72dp</dimen> <dimen name="setting_item_text_width">130dp</dimen> <dimen name="setting_popup_window_width">410dp</dimen> - <dimen name="setting_item_list_margin">16dp</dimen> + <dimen name="setting_item_list_margin">24dp</dimen> <dimen name="popup_title_text_size">22dp</dimen> <dimen name="popup_title_frame_min_height">64dp</dimen> <dimen name="big_setting_popup_window_width">590dp</dimen> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 40e3d25..6b3b279 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -38,7 +38,7 @@ <dimen name="setting_knob_text_size">20dp</dimen> <dimen name="setting_item_text_width">81dp</dimen> <dimen name="setting_popup_window_width">240dp</dimen> - <dimen name="setting_item_list_margin">6dp</dimen> + <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> diff --git a/res/values/styles.xml b/res/values/styles.xml index b20dbfc..9127479 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -94,8 +94,6 @@ </style> <style name="SettingItemList"> <item name="android:orientation">vertical</item> - <item name="android:layout_marginLeft">@dimen/setting_item_list_margin</item> - <item name="android:layout_marginRight">@dimen/setting_item_list_margin</item> <item name="android:paddingBottom">3dp</item> <item name="android:layout_gravity">center</item> <item name="android:layout_width">match_parent</item> @@ -124,8 +122,8 @@ <item name="android:orientation">horizontal</item> <item name="android:layout_width">match_parent</item> <item name="android:layout_height">@dimen/setting_row_height</item> - <item name="android:paddingLeft">8dp</item> - <item name="android:paddingRight">8dp</item> + <item name="android:paddingLeft">@dimen/setting_item_list_margin</item> + <item name="android:paddingRight">@dimen/setting_item_list_margin</item> <item name="android:background">@drawable/setting_picker</item> </style> <style name="SettingKnob"> |
