From 933396975357d27ae72c10da8b3f3fa34f0545fa Mon Sep 17 00:00:00 2001 From: Peter Liang Date: Wed, 10 Aug 2022 22:26:47 +0800 Subject: [PATCH] The activity launch preference should align to the padding style of the main switch. Replaces all margins with the padding to be compatible with SuW lib, and fine-tune the layouts. Bug: 242046040 Test: manual test Change-Id: I27c387b7ff60e6ea4f1fff61e1fd73b647228df9 --- ...cessibility_launch_activity_preference.xml | 45 +++++++++++-------- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/res/layout/accessibility_launch_activity_preference.xml b/res/layout/accessibility_launch_activity_preference.xml index 26a1c334212..5ec6bea4690 100644 --- a/res/layout/accessibility_launch_activity_preference.xml +++ b/res/layout/accessibility_launch_activity_preference.xml @@ -14,26 +14,33 @@ See the License for the specific language governing permissions and limitations under the License. --> - - + android:minHeight="?android:attr/listPreferredItemHeight" + android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" + android:paddingStart="?android:attr/listPreferredItemPaddingStart" + android:paddingVertical="@dimen/settingslib_switchbar_margin" + android:background="@android:color/transparent" + android:importantForAccessibility="no"> - - + android:layout_width="match_parent" + android:paddingStart="@dimen/settingslib_switchbar_padding_left" + android:paddingEnd="@dimen/settingslib_switchbar_padding_right" + android:background="@drawable/settingslib_switch_bar_bg_on"> + + + +