diff options
author | Mark Wei <markwei@google.com> | 2013-07-09 16:00:00 -0700 |
---|---|---|
committer | Mark Wei <markwei@google.com> | 2013-07-12 14:00:40 -0700 |
commit | 81aea35d45b3d0191ec595562a2fcf67009845d5 (patch) | |
tree | ae690fd5a9a8aee3e2a842fe53e08f67433701aa /res/values | |
parent | a2fb3206037770eb4797c3b059d52bd862b40e44 (diff) | |
download | android_packages_apps_UnifiedEmail-81aea35d45b3d0191ec595562a2fcf67009845d5.tar.gz android_packages_apps_UnifiedEmail-81aea35d45b3d0191ec595562a2fcf67009845d5.tar.bz2 android_packages_apps_UnifiedEmail-81aea35d45b3d0191ec595562a2fcf67009845d5.zip |
Final UI for Attachment Previews.
Placeholder pulsates for images not yet loaded.
One images loads at a time, that one image will display a spinning progressbar
after a delay.
Progress bar fixes to ensure it is rotates smoothly.
Clear section before drawing to it so transparent images look right.
Avoid PhotoManager load loop.
Bug: 9745486
Bug: 9816053
Change-Id: I2e65b3e3484d6da47d4e2523404dc745b99dd04c
Diffstat (limited to 'res/values')
-rw-r--r-- | res/values/colors.xml | 5 | ||||
-rw-r--r-- | res/values/constants.xml | 6 | ||||
-rw-r--r-- | res/values/dimen.xml | 2 |
3 files changed, 8 insertions, 5 deletions
diff --git a/res/values/colors.xml b/res/values/colors.xml index 5af4a3d84..3f6ccffb0 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -32,9 +32,8 @@ <color name="date_text_color">@color/dark_gray_text_color</color> <color name="message_info_text_color">@color/gray_text_color</color> <color name="subject_text_color">#333333</color> - <!--todo:markwei get overflow badge and count color from channah--> - <color name="ap_overflow_badge_color">#aaeeeeee</color> - <color name="ap_overflow_text_color">@android:color/tertiary_text_light</color> + <color name="ap_overflow_badge_color">#eeeeeeee</color> + <color name="ap_overflow_text_color">#ff4f4c4c</color> <!-- a 'checked' item is in the conversation selection set. also the 'pressed' color. --> <!-- this is holo_blue_light @ 20% opacity --> <color name="checked_item_background_color">#cfe9f3</color> diff --git a/res/values/constants.xml b/res/values/constants.xml index 517ae8dd3..4cf939934 100644 --- a/res/values/constants.xml +++ b/res/values/constants.xml @@ -115,6 +115,12 @@ <!-- Number of menu items to hide from the ActionBar by subtracting from actionbar_max_items in non-cab mode --> <integer name="actionbar_hidden_non_cab_items_no_physical_button">1</integer> + <!-- Duration of progress bar animation for attachment previews --> + <integer name="ap_progress_animation_duration">4000</integer> + <!-- Duration of placeholder pulse animation for attachment previews --> + <integer name="ap_placeholder_animation_duration">2000</integer> + <!-- Delay before showing progress bar animations for attachment previews that are loading --> + <integer name="ap_progress_animation_delay">2000</integer> <!-- Max overflow count to show for attachment previews --> <integer name="ap_overflow_max_count">99</integer> </resources> diff --git a/res/values/dimen.xml b/res/values/dimen.xml index 22fca7502..d4e337212 100644 --- a/res/values/dimen.xml +++ b/res/values/dimen.xml @@ -127,9 +127,7 @@ <dimen name="attachment_preview_margin_bottom">4dp</dimen> <dimen name="attachment_preview_margin_bottom_wide">8dp</dimen> - <!--todo:markwei get the diameter from channah--> <dimen name="ap_overflow_count_diameter">20dp</dimen> - <!--todo:markwei channah wanted 8dp but only 4dp fits read previews--> <dimen name="ap_margin_side">4dp</dimen> <dimen name="folder_minimum_width">48dip</dimen> |