diff options
author | Diogo Ferreira <defer@cyngn.com> | 2014-12-04 15:13:28 +0000 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-26 16:11:13 -0700 |
commit | 82a9c6b221940c808b203388d05832fe729efee3 (patch) | |
tree | 338c19db77b3c35e33d1146bfa2421d6f637f7e0 /res/values/styles.xml | |
parent | 6455208e1334114881be837cfbc26d3ae06f9ce3 (diff) | |
download | packages_apps_Settings-82a9c6b221940c808b203388d05832fe729efee3.zip packages_apps_Settings-82a9c6b221940c808b203388d05832fe729efee3.tar.gz packages_apps_Settings-82a9c6b221940c808b203388d05832fe729efee3.tar.bz2 |
profiles: Make the floating action button more material-y
This makes the FAB look consistent with other fabs across the system,
it adds animated elevation, changes the icon color to white but mainly
fixes the size which was completly wrong.
Change-Id: Ib8b2d54869a6a10958c24bcc0fab1224fd07fadd
Diffstat (limited to 'res/values/styles.xml')
-rw-r--r-- | res/values/styles.xml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/res/values/styles.xml b/res/values/styles.xml index d6fd326..19b0f7d 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -370,4 +370,23 @@ <item name="android:layout_width">match_parent</item> <item name="android:layout_height">1dp</item> </style> + + <style name="floating_action_button"> + <item name="android:layout_width">@dimen/fab_size</item> + <item name="android:layout_height">@dimen/fab_size</item> + <item name="android:layout_margin">@dimen/fab_margin</item> + <item name="android:background">@drawable/floating_action_button</item> + <item name="android:stateListAnimator">@anim/floating_action_button_elevation</item> + <item name="android:elevation">@dimen/fab_elevation_normal</item> + <item name="android:layout_alignParentBottom">true</item> + <item name="android:layout_alignParentRight">true</item> + <item name="android:layout_gravity">bottom|right</item> + </style> + + <style name="floating_action_button_image"> + <item name="android:layout_width">@dimen/fab_icon_size</item> + <item name="android:layout_height">@dimen/fab_icon_size</item> + <item name="android:layout_gravity">center</item> + <item name="android:background">@android:color/transparent</item> + </style> </resources> |