Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3ba8ee4 authored by Robert Horvath's avatar Robert Horvath
Browse files

HeavyWeightSwitcher: Use selectableItemBackground

Change the list item background from list_selector_background to
selectableItemBackground.
Also changes some paddings, so that list item is padded while keeping
icon aligned with the dialog description text.

Test: Used HeavyWeightSwitcherActivity as test dialog.
      Tested on phone emulator to verify appearance on phone.
      Same change applied to pi-tv-dev branch tested on
      an ADT-2 to verify appearance on TV.
Bug: 133398453
Change-Id: Ib4cdfcb16ccce25aa4a73cfb583da5603bef14c4
parent 8ae74429
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -15,7 +15,9 @@
-->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:padding="24dp"
    android:orientation="vertical"
    android:paddingVertical="24dp"
    android:paddingHorizontal="16dp"
    android:gravity="center_horizontal"
    android:layout_width="wrap_content" android:layout_height="wrap_content">

@@ -23,6 +25,7 @@
        android:layout_width="match_parent" android:layout_height="wrap_content"
        android:layout_weight="0"
        android:paddingBottom="20dp"
        android:paddingHorizontal="8dp"
        android:textAppearance="?android:attr/textAppearanceLarge"
        android:text="@string/heavy_weight_switcher_title"/>

@@ -30,6 +33,7 @@
        android:layout_width="match_parent" android:layout_height="wrap_content"
        android:layout_weight="0"
        android:paddingBottom="16dp"
        android:paddingHorizontal="8dp"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:text="@string/heavy_weight_switcher_text"/>

@@ -37,8 +41,9 @@
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:minHeight="72dp"
        android:paddingHorizontal="8dp"
        android:orientation="horizontal"
        android:background="@android:drawable/list_selector_background"
        android:background="?android:attr/selectableItemBackground"
        android:gravity="center_vertical"
        android:focusable="true" >
    
@@ -68,8 +73,9 @@
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:minHeight="88dp"
        android:paddingHorizontal="8dp"
        android:orientation="horizontal"
        android:background="@android:drawable/list_selector_background"
        android:background="?android:attr/selectableItemBackground"
        android:gravity="center_vertical"
        android:focusable="true" >