path: root/res/values/dimens.xml
diff options
authorTony Wickham <>2017-01-11 09:53:12 -0800
committerTony Wickham <>2017-01-13 10:58:10 -0800
commit9a8d11f930ced4c2706db150b7bbbb21330bd68d (patch)
tree836cd603e38d3cb17ae0a5950757b479639c6c85 /res/values/dimens.xml
parent19ea5cc0c853d48db59363f763d9a06c8691e00d (diff)
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/dimens.xml')
1 files changed, 4 insertions, 0 deletions
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 1a09fa0..c7bc286 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>