summaryrefslogtreecommitdiffstats
path: root/res/drawable/btn_colored_background.xml
diff options
context:
space:
mode:
Diffstat (limited to 'res/drawable/btn_colored_background.xml')
-rw-r--r--res/drawable/btn_colored_background.xml35
1 files changed, 35 insertions, 0 deletions
diff --git a/res/drawable/btn_colored_background.xml b/res/drawable/btn_colored_background.xml
new file mode 100644
index 0000000..8e1a95e
--- /dev/null
+++ b/res/drawable/btn_colored_background.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2019 The Android Open Source 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.
+-->
+
+<inset xmlns:android="http://schemas.android.com/apk/res/android"
+ android:insetLeft="@*android:dimen/button_inset_horizontal_material"
+ android:insetTop="@*android:dimen/button_inset_vertical_material"
+ android:insetRight="@*android:dimen/button_inset_horizontal_material"
+ android:insetBottom="@*android:dimen/button_inset_vertical_material">
+ <ripple android:color="@color/ripple_button_color">
+ <item>
+ <shape android:shape="rectangle"
+ android:tint="@*android:color/btn_colored_background_material">
+ <corners android:radius="?android:attr/buttonCornerRadius" />
+ <solid android:color="@android:color/white" />
+ <padding android:left="@*android:dimen/button_padding_horizontal_material"
+ android:top="@*android:dimen/button_padding_vertical_material"
+ android:right="@*android:dimen/button_padding_horizontal_material"
+ android:bottom="@*android:dimen/button_padding_vertical_material" />
+ </shape>
+ </item>
+ </ripple>
+</inset>