summaryrefslogtreecommitdiffstats
path: root/res/layout/fab.xml
diff options
context:
space:
mode:
authorDiogo Ferreira <defer@cyngn.com>2014-12-04 15:13:28 +0000
committerAdnan Begovic <adnan@cyngn.com>2015-10-26 16:11:13 -0700
commit82a9c6b221940c808b203388d05832fe729efee3 (patch)
tree338c19db77b3c35e33d1146bfa2421d6f637f7e0 /res/layout/fab.xml
parent6455208e1334114881be837cfbc26d3ae06f9ce3 (diff)
downloadpackages_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/layout/fab.xml')
-rw-r--r--res/layout/fab.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/res/layout/fab.xml b/res/layout/fab.xml
new file mode 100644
index 0000000..9c41f3e
--- /dev/null
+++ b/res/layout/fab.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2014 The CyanogenMod Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/floating_action_button"
+ style="@style/floating_action_button">
+ <ImageView
+ style="@style/floating_action_button_image"
+ android:src="@drawable/ic_menu_add_white"/>
+</FrameLayout> \ No newline at end of file