[Output Switcher] Add support RTL mode
screenshot: https://screenshot.googleplex.com/AjrcCF5drDAHVhN.png Test: make -j64 RunSettingsLibRoboTests ROBOTEST_FILTER="com.android.settingslib.media.InfoMediaDeviceTest" Bug: 284409549 Change-Id: I245d08d3df067547c3b81b4e10c4e7c24620606c
This commit is contained in:
committed by
Shaowei Shen
parent
b2c12cea96
commit
ac6bdad0a5
@@ -3,7 +3,8 @@
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
android:tint="?attr/colorControlNormal"
|
||||
android:autoMirrored="true">
|
||||
<path
|
||||
android:fillColor="@color/media_dialog_item_main_content"
|
||||
android:pathData="M14,20.725V18.675Q16.25,18.025 17.625,16.175Q19,14.325 19,11.975Q19,9.625 17.625,7.775Q16.25,5.925 14,5.275V3.225Q17.1,3.925 19.05,6.362Q21,8.8 21,11.975Q21,15.15 19.05,17.587Q17.1,20.025 14,20.725ZM3,15V9H7L12,4V20L7,15ZM14,16V7.95Q15.125,8.475 15.812,9.575Q16.5,10.675 16.5,12Q16.5,13.325 15.812,14.4Q15.125,15.475 14,16ZM10,8.85 L7.85,11H5V13H7.85L10,15.15ZM7.5,12Z"/>
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners
|
||||
android:bottomLeftRadius="28dp"
|
||||
android:topLeftRadius="28dp"
|
||||
android:bottomRightRadius="0dp"
|
||||
android:topRightRadius="0dp"/>
|
||||
android:bottomLeftRadius="@dimen/media_output_dialog_icon_left_radius"
|
||||
android:topLeftRadius="@dimen/media_output_dialog_icon_left_radius"
|
||||
android:bottomRightRadius="@dimen/media_output_dialog_icon_right_radius"
|
||||
android:topRightRadius="@dimen/media_output_dialog_icon_right_radius"/>
|
||||
<solid android:color="@color/media_dialog_item_background" />
|
||||
</shape>
|
||||
20
packages/SystemUI/res/values-ldrtl/dimens.xml
Normal file
20
packages/SystemUI/res/values-ldrtl/dimens.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2023 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.
|
||||
-->
|
||||
<resources>
|
||||
<dimen name="media_output_dialog_icon_left_radius">0dp</dimen>
|
||||
<dimen name="media_output_dialog_icon_right_radius">28dp</dimen>
|
||||
</resources>
|
||||
@@ -1346,6 +1346,8 @@
|
||||
<dimen name="media_output_dialog_default_margin_end">16dp</dimen>
|
||||
<dimen name="media_output_dialog_selectable_margin_end">80dp</dimen>
|
||||
<dimen name="media_output_dialog_list_padding_top">8dp</dimen>
|
||||
<dimen name="media_output_dialog_icon_left_radius">28dp</dimen>
|
||||
<dimen name="media_output_dialog_icon_right_radius">0dp</dimen>
|
||||
|
||||
<!-- Distance that the full shade transition takes in order to complete by tapping on a button
|
||||
like "expand". -->
|
||||
|
||||
Reference in New Issue
Block a user