Merge "Shrink button ripple on QS btns to 36dp" into nyc-dev
This commit is contained in:
32
packages/SystemUI/res/drawable/qs_btn_borderless_rect.xml
Normal file
32
packages/SystemUI/res/drawable/qs_btn_borderless_rect.xml
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
<!--
|
||||||
|
Copyright (C) 2016 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:insetTop="4dp"
|
||||||
|
android:insetBottom="4dp">
|
||||||
|
<ripple
|
||||||
|
android:color="?android:attr/colorControlHighlight" >
|
||||||
|
|
||||||
|
<item android:id="@android:id/mask">
|
||||||
|
<shape>
|
||||||
|
<corners android:radius="@dimen/borderless_button_radius" />
|
||||||
|
|
||||||
|
<solid android:color="@android:color/white" />
|
||||||
|
</shape>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
</ripple>
|
||||||
|
</inset>
|
||||||
@@ -214,7 +214,7 @@
|
|||||||
|
|
||||||
<style name="QSBorderlessButton">
|
<style name="QSBorderlessButton">
|
||||||
<item name="android:padding">12dp</item>
|
<item name="android:padding">12dp</item>
|
||||||
<item name="android:background">@drawable/btn_borderless_rect</item>
|
<item name="android:background">@drawable/qs_btn_borderless_rect</item>
|
||||||
<item name="android:gravity">center</item>
|
<item name="android:gravity">center</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user