diff options
author | Chih-Chung Chang <chihchung@google.com> | 2011-09-19 11:09:39 +0800 |
---|---|---|
committer | Chih-Chung Chang <chihchung@google.com> | 2011-09-20 12:18:21 +0800 |
commit | 710db7746bf13003f869a2ceef1943e8ac1aea20 (patch) | |
tree | 9b284f17f2346f74133e0f3d7b5a3afdb5fb2064 | |
parent | 27a7e7b36ed5a42a0983a922db4df30b8fd154af (diff) | |
download | android_packages_apps_Snap-710db7746bf13003f869a2ceef1943e8ac1aea20.tar.gz android_packages_apps_Snap-710db7746bf13003f869a2ceef1943e8ac1aea20.tar.bz2 android_packages_apps_Snap-710db7746bf13003f869a2ceef1943e8ac1aea20.zip |
Fix 5299746: New UI layout, part 2.
- Replace various icons and add xhdpi/sw600dp-mdpi versions of them.
- When user press on the thumbnails, show a color overlay on it.
- For a wide (w/h > 2) picture, add panorama overlay on it.
- Align photo count label position when there is no icon for it.
- Adjust offline page layout.
Change-Id: I327d25806e99843bfa05d3ca0e9be5a8f9375595
27 files changed, 64 insertions, 106 deletions
diff --git a/res/drawable-hdpi/frame_overlay_gallery_ptp.png b/res/drawable-hdpi/frame_overlay_gallery_ptp.png Binary files differnew file mode 100644 index 000000000..cb9ef501c --- /dev/null +++ b/res/drawable-hdpi/frame_overlay_gallery_ptp.png diff --git a/res/drawable-hdpi/grid_pressed.9.png b/res/drawable-hdpi/grid_pressed.9.png Binary files differnew file mode 100644 index 000000000..36486ae76 --- /dev/null +++ b/res/drawable-hdpi/grid_pressed.9.png diff --git a/res/drawable-hdpi/ic_album_overlay_ptp_holo.png b/res/drawable-hdpi/ic_album_overlay_ptp_holo.png Binary files differdeleted file mode 100644 index b72584048..000000000 --- a/res/drawable-hdpi/ic_album_overlay_ptp_holo.png +++ /dev/null diff --git a/res/drawable-hdpi/ic_gallery_play.png b/res/drawable-hdpi/ic_gallery_play.png Binary files differindex e475e1fc0..e4060e5a7 100644 --- a/res/drawable-hdpi/ic_gallery_play.png +++ b/res/drawable-hdpi/ic_gallery_play.png diff --git a/res/drawable-hdpi/manage_bar.9.png b/res/drawable-hdpi/manage_bar.9.png Binary files differdeleted file mode 100644 index 336c2d74d..000000000 --- a/res/drawable-hdpi/manage_bar.9.png +++ /dev/null diff --git a/res/drawable-mdpi/frame_overlay_gallery_ptp.png b/res/drawable-mdpi/frame_overlay_gallery_ptp.png Binary files differnew file mode 100644 index 000000000..95ba8f031 --- /dev/null +++ b/res/drawable-mdpi/frame_overlay_gallery_ptp.png diff --git a/res/drawable-mdpi/grid_pressed.9.png b/res/drawable-mdpi/grid_pressed.9.png Binary files differnew file mode 100644 index 000000000..ecb51bde4 --- /dev/null +++ b/res/drawable-mdpi/grid_pressed.9.png diff --git a/res/drawable-mdpi/ic_album_overlay_ptp_holo.png b/res/drawable-mdpi/ic_album_overlay_ptp_holo.png Binary files differdeleted file mode 100644 index adbd3d143..000000000 --- a/res/drawable-mdpi/ic_album_overlay_ptp_holo.png +++ /dev/null diff --git a/res/drawable-mdpi/ic_gallery_play.png b/res/drawable-mdpi/ic_gallery_play.png Binary files differindex 183d75e9a..753231d4a 100644 --- a/res/drawable-mdpi/ic_gallery_play.png +++ b/res/drawable-mdpi/ic_gallery_play.png diff --git a/res/drawable-mdpi/manage_bar.9.png b/res/drawable-mdpi/manage_bar.9.png Binary files differdeleted file mode 100644 index e42b92bd3..000000000 --- a/res/drawable-mdpi/manage_bar.9.png +++ /dev/null diff --git a/res/drawable-sw600dp-mdpi/ic_pan_thumb.png b/res/drawable-sw600dp-mdpi/ic_pan_thumb.png Binary files differnew file mode 100644 index 000000000..e249029a0 --- /dev/null +++ b/res/drawable-sw600dp-mdpi/ic_pan_thumb.png diff --git a/res/drawable-sw600dp-mdpi/ic_video_thumb.png b/res/drawable-sw600dp-mdpi/ic_video_thumb.png Binary files differnew file mode 100644 index 000000000..743cec2bd --- /dev/null +++ b/res/drawable-sw600dp-mdpi/ic_video_thumb.png diff --git a/res/drawable-xhdpi/frame_overlay_gallery_camera.png b/res/drawable-xhdpi/frame_overlay_gallery_camera.png Binary files differnew file mode 100644 index 000000000..e9bc7ccbc --- /dev/null +++ b/res/drawable-xhdpi/frame_overlay_gallery_camera.png diff --git a/res/drawable-xhdpi/frame_overlay_gallery_folder.png b/res/drawable-xhdpi/frame_overlay_gallery_folder.png Binary files differnew file mode 100644 index 000000000..cbafc8549 --- /dev/null +++ b/res/drawable-xhdpi/frame_overlay_gallery_folder.png diff --git a/res/drawable-xhdpi/frame_overlay_gallery_picasa.png b/res/drawable-xhdpi/frame_overlay_gallery_picasa.png Binary files differnew file mode 100644 index 000000000..e7463a432 --- /dev/null +++ b/res/drawable-xhdpi/frame_overlay_gallery_picasa.png diff --git a/res/drawable-xhdpi/frame_overlay_gallery_ptp.png b/res/drawable-xhdpi/frame_overlay_gallery_ptp.png Binary files differnew file mode 100644 index 000000000..57fb7e486 --- /dev/null +++ b/res/drawable-xhdpi/frame_overlay_gallery_ptp.png diff --git a/res/drawable-xhdpi/grid_pressed.9.png b/res/drawable-xhdpi/grid_pressed.9.png Binary files differnew file mode 100644 index 000000000..f2fed2da5 --- /dev/null +++ b/res/drawable-xhdpi/grid_pressed.9.png diff --git a/res/drawable-xhdpi/grid_selected.9.png b/res/drawable-xhdpi/grid_selected.9.png Binary files differnew file mode 100644 index 000000000..d0f4a22f3 --- /dev/null +++ b/res/drawable-xhdpi/grid_selected.9.png diff --git a/res/drawable-xhdpi/ic_gallery_play.png b/res/drawable-xhdpi/ic_gallery_play.png Binary files differnew file mode 100644 index 000000000..70901e59b --- /dev/null +++ b/res/drawable-xhdpi/ic_gallery_play.png diff --git a/res/drawable-xhdpi/ic_menu_make_offline.png b/res/drawable-xhdpi/ic_menu_make_offline.png Binary files differnew file mode 100644 index 000000000..808e2d1da --- /dev/null +++ b/res/drawable-xhdpi/ic_menu_make_offline.png diff --git a/res/drawable-xhdpi/ic_pan_thumb.png b/res/drawable-xhdpi/ic_pan_thumb.png Binary files differnew file mode 100644 index 000000000..6e3405c0d --- /dev/null +++ b/res/drawable-xhdpi/ic_pan_thumb.png diff --git a/res/drawable-xhdpi/ic_video_thumb.png b/res/drawable-xhdpi/ic_video_thumb.png Binary files differnew file mode 100644 index 000000000..e0f53b381 --- /dev/null +++ b/res/drawable-xhdpi/ic_video_thumb.png diff --git a/res/drawable-xhdpi/thumb_selected.png b/res/drawable-xhdpi/thumb_selected.png Binary files differnew file mode 100644 index 000000000..c6536bcf4 --- /dev/null +++ b/res/drawable-xhdpi/thumb_selected.png diff --git a/res/layout-w480dp/manage_offline_bar.xml b/res/layout-w480dp/manage_offline_bar.xml deleted file mode 100644 index d44ecf09f..000000000 --- a/res/layout-w480dp/manage_offline_bar.xml +++ /dev/null @@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2010 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:background="@drawable/manage_bar"> - <LinearLayout android:id="@+id/cache_bar" - android:gravity="center_vertical" - android:orientation="horizontal" - android:layout_width="match_parent" - android:layout_height="wrap_content"> - <TextView android:layout_width="wrap_content" - android:paddingLeft="2dp" - android:layout_height="wrap_content" - android:gravity="center_vertical|left" - android:drawablePadding="3dp" - android:text="@string/make_available_offline" - android:drawableLeft="@drawable/ic_manage_pin"/> - <ProgressBar android:id="@+id/progress" - style="?android:attr/progressBarStyleHorizontal" - android:max="100" - android:progress="30" - android:secondaryProgress="65" - android:layout_marginLeft="5dp" - android:layout_marginRight="5dp" - android:layout_weight="1" - android:layout_width="match_parent" - android:layout_height="10dp"/> - <TextView android:id="@+id/status" - android:paddingRight="2dp" - android:layout_width="wrap_content" - android:layout_height="wrap_content"/> - <View android:layout_width="2dp" - android:layout_height="match_parent" - android:background="@android:drawable/divider_horizontal_dark" /> - <Button android:id="@+id/done" - style="?android:attr/borderlessButtonStyle" - android:text="@string/done" - android:layout_weight="0" - android:layout_alignParentBottom="true" - android:layout_alignParentLeft="true" - android:layout_alignParentRight="true" - android:layout_width="wrap_content" - android:layout_height="match_parent"/> - </LinearLayout> -</FrameLayout> diff --git a/res/layout/manage_offline_bar.xml b/res/layout/manage_offline_bar.xml index b4bcec225..81853ed88 100644 --- a/res/layout/manage_offline_bar.xml +++ b/res/layout/manage_offline_bar.xml @@ -13,50 +13,44 @@ See the License for the specific language governing permissions and limitations under the License. --> -<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:background="@drawable/manage_bar"> - <LinearLayout android:id="@+id/cache_bar" - android:orientation="horizontal" - android:layout_width="match_parent" - android:layout_height="wrap_content"> - <LinearLayout android:orientation="vertical" - android:paddingLeft="10dp" - android:paddingRight="5dp" - android:paddingBottom="5dp" - android:paddingTop="5dp" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="1"> - <TextView android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="bottom" - android:drawablePadding="3dp" - android:text="@string/make_available_offline" - android:drawableRight="@drawable/ic_manage_pin_small"/> - <ProgressBar android:id="@+id/progress" - style="?android:attr/progressBarStyleHorizontal" - android:max="100" - android:progress="30" - android:secondaryProgress="65" - android:layout_marginTop="2dp" - android:layout_marginBottom="2dp" - android:layout_width="match_parent" - android:layout_height="3dp"/> - <TextView android:id="@+id/status" - android:layout_width="match_parent" - android:layout_height="wrap_content"/> - </LinearLayout> - <View android:layout_width="2dp" - android:layout_height="match_parent" - android:background="@android:drawable/divider_horizontal_dark" /> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <RelativeLayout + android:layout_width="fill_parent" + android:layout_height="40dp"> + <TextView android:id="@+id/status" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_centerHorizontal="true" /> + <ProgressBar android:id="@+id/progress" + style="?android:attr/progressBarStyleHorizontal" + android:max="100" + android:progress="30" + android:secondaryProgress="65" + android:layout_marginTop="2dp" + android:layout_marginBottom="2dp" + android:layout_width="130dp" + android:layout_height="4dp" + android:layout_below="@id/status" + android:layout_centerHorizontal="true"/> + </RelativeLayout> + <RelativeLayout android:layout_width="fill_parent" + android:layout_height="@dimen/manage_cache_bottom_height" + android:background="#1f1f1f"> + <TextView android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/make_available_offline" + android:layout_alignParentLeft="true" + android:layout_centerVertical="true" + android:drawableLeft="@drawable/ic_manage_pin_small" + android:drawablePadding="3dp"/> <Button android:id="@+id/done" - style="?android:attr/borderlessButtonStyle" - android:text="@string/done" - android:layout_weight="0" - android:layout_alignParentBottom="true" - android:layout_alignParentLeft="true" - android:layout_alignParentRight="true" - android:layout_width="wrap_content" - android:layout_height="match_parent"/> - </LinearLayout> -</FrameLayout> + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:text="@string/done" + android:layout_alignParentRight="true"/> + </RelativeLayout> +</LinearLayout> diff --git a/res/values-land/dimensions.xml b/res/values-land/dimensions.xml new file mode 100644 index 000000000..b5c5ed341 --- /dev/null +++ b/res/values-land/dimensions.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<resources> + <!-- for manage cache bar --> + <dimen name="manage_cache_bottom_height">39dp</dimen> +</resources> diff --git a/res/values/dimensions.xml b/res/values/dimensions.xml index 428de3a14..2804bc96d 100644 --- a/res/values/dimensions.xml +++ b/res/values/dimensions.xml @@ -24,11 +24,11 @@ <integer name="albumset_rows_port">4</integer> <dimen name="albumset_slot_gap">1dp</dimen> - <dimen name="albumset_dark_strip_height">40dp</dimen> + <dimen name="albumset_label_background_height">40dp</dimen> <dimen name="albumset_title_offset">3dp</dimen> - <dimen name="albumset_number_offset">4dp</dimen> + <dimen name="albumset_count_offset">4dp</dimen> <dimen name="albumset_title_font_size">14sp</dimen> - <dimen name="albumset_number_font_size">12sp</dimen> + <dimen name="albumset_count_font_size">12sp</dimen> <dimen name="albumset_left_margin">6dp</dimen> <dimen name="albumset_icon_size">26dp</dimen> @@ -54,4 +54,6 @@ <dimen name="filmstrip_bar_size">10dp</dimen> <dimen name="filmstrip_grip_width">96dp</dimen> + <!-- for manage cache bar --> + <dimen name="manage_cache_bottom_height">48dp</dimen> </resources> |