From 21223662b9ba2669ec11e45a4e03be1efedbf71f Mon Sep 17 00:00:00 2001 From: afohrman Date: Fri, 22 Dec 2017 13:11:29 -0500 Subject: [PATCH] Add bottom nav icon and text color styles and demos. Add the two baseline bottom nav color styles: 1. default baseline: white background, colorPrimary for activated item text/icon colors, and percentages of black and for non-activated text/icon colors 2. colored baseline: colorPrimary background and percentages of white for icon/text colors PiperOrigin-RevId: 179937660 --- .../mtrl_bottom_nav_colored_item_tint.xml | 23 +++++++++++++++++++ lib/res/color/mtrl_bottom_nav_item_tint.xml | 23 +++++++++++++++++++ lib/res/values/attrs.xml | 2 ++ lib/res/values/styles.xml | 18 ++++++++++++--- 4 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 lib/res/color/mtrl_bottom_nav_colored_item_tint.xml create mode 100644 lib/res/color/mtrl_bottom_nav_item_tint.xml diff --git a/lib/res/color/mtrl_bottom_nav_colored_item_tint.xml b/lib/res/color/mtrl_bottom_nav_colored_item_tint.xml new file mode 100644 index 000000000..6b7a8a768 --- /dev/null +++ b/lib/res/color/mtrl_bottom_nav_colored_item_tint.xml @@ -0,0 +1,23 @@ + + + + + + + + + diff --git a/lib/res/color/mtrl_bottom_nav_item_tint.xml b/lib/res/color/mtrl_bottom_nav_item_tint.xml new file mode 100644 index 000000000..71fa63c93 --- /dev/null +++ b/lib/res/color/mtrl_bottom_nav_item_tint.xml @@ -0,0 +1,23 @@ + + + + + + + + + diff --git a/lib/res/values/attrs.xml b/lib/res/values/attrs.xml index dacb2c676..63f5d8db1 100644 --- a/lib/res/values/attrs.xml +++ b/lib/res/values/attrs.xml @@ -616,7 +616,9 @@ + + diff --git a/lib/res/values/styles.xml b/lib/res/values/styles.xml index 59bb19d02..66c67f68c 100644 --- a/lib/res/values/styles.xml +++ b/lib/res/values/styles.xml @@ -51,14 +51,26 @@ true + + + +