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

Commit f6887800 authored by PETER LIANG's avatar PETER LIANG Committed by Android (Google) Code Review
Browse files

Merge "The activity launch preference should align to the padding style of the main switch."

parents 26a161c5 93339697
Loading
Loading
Loading
Loading
+26 −19
Original line number Diff line number Diff line
@@ -14,12 +14,19 @@
  See the License for the specific language governing permissions and
  limitations under the License.
  -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_height="wrap_content"
    android:layout_width="match_parent"
    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">

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:minHeight="@dimen/settingslib_min_switch_bar_height"
    <FrameLayout
        android:layout_height="wrap_content"
        android:layout_width="match_parent"
    android:layout_margin="@dimen/settingslib_switchbar_margin"
        android:paddingStart="@dimen/settingslib_switchbar_padding_left"
        android:paddingEnd="@dimen/settingslib_switchbar_padding_right"
        android:background="@drawable/settingslib_switch_bar_bg_on">
@@ -28,12 +35,12 @@
            android:id="@android:id/title"
            android:layout_height="wrap_content"
            android:layout_width="wrap_content"
        android:layout_marginEnd="@dimen/settingslib_switch_title_margin"
        android:layout_marginVertical="@dimen/settingslib_switch_title_margin"
            android:layout_gravity="center_vertical"
            android:paddingVertical="@dimen/settingslib_switch_title_margin"
            android:ellipsize="end"
            android:textAppearance="?android:attr/textAppearanceListItem"
            android:hyphenationFrequency="normalFast"
            android:lineBreakWordStyle="phrase"
            style="@style/MainSwitchText.Settingslib"/>
</LinearLayout>
    </FrameLayout>
</FrameLayout>