diff options
author | Tony Wickham <twickham@google.com> | 2017-01-11 09:53:12 -0800 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2017-01-13 10:58:10 -0800 |
commit | 9a8d11f930ced4c2706db150b7bbbb21330bd68d (patch) | |
tree | 836cd603e38d3cb17ae0a5950757b479639c6c85 /res/values | |
parent | 19ea5cc0c853d48db59363f763d9a06c8691e00d (diff) | |
download | android_packages_apps_Trebuchet-9a8d11f930ced4c2706db150b7bbbb21330bd68d.tar.gz android_packages_apps_Trebuchet-9a8d11f930ced4c2706db150b7bbbb21330bd68d.tar.bz2 android_packages_apps_Trebuchet-9a8d11f930ced4c2706db150b7bbbb21330bd68d.zip |
FastBitmapDrawable can draw an icon badge (notification count)
- Added BadgeInfo to contain data to be shown in a badge
(currently just notification count).
- Added BadgeRenderer in DeviceProfile to contain things
relevant to drawing the badge, such as size and Paint's.
- Added IconPalette to compute colors for the badge based
on a dominant color (will also be used for notifications)
- FastBitmapDrawable uses these classes to draw the badge.
Bug: 32410600
Change-Id: I6595a4879943357590f7d20c22594691a573ecaf
Diffstat (limited to 'res/values')
-rw-r--r-- | res/values/dimens.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 1a09fa002..c7bc28641 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -169,6 +169,10 @@ also happens to equal 19dp--> <dimen name="deep_shortcuts_arrow_horizontal_offset">19dp</dimen> +<!-- Icon badges (with notification counts) --> + <dimen name="badge_size">24dp</dimen> + <dimen name="badge_text_size">12dp</dimen> + <!-- Other --> <!-- Approximates the system status bar height. Not guaranteed to be always be correct. --> <dimen name="status_bar_height">24dp</dimen> |