Merge "UI fixes for system bars"

This commit is contained in:
Julia Kawano
2020-09-30 23:14:42 +00:00
committed by Android (Google) Code Review
2 changed files with 18 additions and 6 deletions

View File

@@ -14,9 +14,20 @@
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/system_bar_background_pill_color"/>
<corners android:radius="30dp"/>
</shape>
<layer-list
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt">
<item>
<aapt:attr name="android:drawable">
<shape android:shape="rectangle">
<solid android:color="@color/system_bar_background_pill_color"/>
<corners android:radius="30dp"/>
</shape>
</aapt:attr>
</item>
<item>
<aapt:attr name="android:drawable">
<ripple android:color="?android:attr/colorControlHighlight"/>
</aapt:attr>
</item>
</layer-list>

View File

@@ -49,5 +49,6 @@
<item name="android:padding">@dimen/system_bar_button_padding</item>
<item name="android:gravity">center</item>
<item name="android:background">?android:attr/selectableItemBackground</item>
<item name="unselectedAlpha">0.56</item>
</style>
</resources>