diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2014-08-04 10:53:22 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2014-08-11 12:32:04 -0700 |
commit | 95abbb330ce9bbaf23594245f0f8a795c8118038 (patch) | |
tree | 3d72a2655eb05efd10c9d5c5e29cc40d2b40838b /res | |
parent | 6551b7ef07b4d73c096cbfb22002e080b498cbbb (diff) | |
download | android_packages_apps_Trebuchet-95abbb330ce9bbaf23594245f0f8a795c8118038.tar.gz android_packages_apps_Trebuchet-95abbb330ce9bbaf23594245f0f8a795c8118038.tar.bz2 android_packages_apps_Trebuchet-95abbb330ce9bbaf23594245f0f8a795c8118038.zip |
Updating the virtual preloader UX.
> No click feedback when in preloader mode
> No preloader UI when drawn in drag layer
> The preloader consists of a background 9 patch image and a circular progress
is drawn in the content region of the background.
> The preloader is drawn in a slightly larget area than the actual bounds to
make the circular progress more prominent compared to the icon.
issue: 15835307
Change-Id: Ifec3d93ecf1fac994d1128b517da3797247e7ed6
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-xxhdpi/virtual_preload.9.png | bin | 0 -> 16628 bytes | |||
-rw-r--r-- | res/drawable-xxhdpi/virtual_preload_folder.9.png | bin | 0 -> 7697 bytes | |||
-rw-r--r-- | res/values/attrs.xml | 6 | ||||
-rw-r--r-- | res/values/styles.xml | 12 |
4 files changed, 18 insertions, 0 deletions
diff --git a/res/drawable-xxhdpi/virtual_preload.9.png b/res/drawable-xxhdpi/virtual_preload.9.png Binary files differnew file mode 100644 index 000000000..0ec1740bf --- /dev/null +++ b/res/drawable-xxhdpi/virtual_preload.9.png diff --git a/res/drawable-xxhdpi/virtual_preload_folder.9.png b/res/drawable-xxhdpi/virtual_preload_folder.9.png Binary files differnew file mode 100644 index 000000000..ee80c768c --- /dev/null +++ b/res/drawable-xxhdpi/virtual_preload_folder.9.png diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 12fa3cd2b..552e84ca2 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -152,6 +152,12 @@ <attr name="workspace" format="reference" /> </declare-styleable> + <declare-styleable name="PreloadIconDrawable"> + <attr name="background" format="reference" /> + <attr name="ringOutset" format="dimension" /> + <attr name="indicatorSize" format="dimension" /> + </declare-styleable> + <!-- Only used in the device overlays --> <declare-styleable name="CustomClingTitleText"> </declare-styleable> diff --git a/res/values/styles.xml b/res/values/styles.xml index 462c29239..6079eee3b 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -161,6 +161,18 @@ <item name="android:shadowRadius">2.0</item> </style> + <style name="PreloadIcon"> + <item name="background">@drawable/virtual_preload</item> + <item name="indicatorSize">4dp</item> + <item name="ringOutset">4dp</item> + </style> + + <style name="PreloadIcon.Folder"> + <item name="background">@drawable/virtual_preload_folder</item> + <item name="indicatorSize">4dp</item> + <item name="ringOutset">4dp</item> + </style> + <!-- Overridden in device overlays --> <style name="CustomClingTitleText"> </style> |