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

Commit f4d09fe7 authored by Weng Su's avatar Weng Su
Browse files

Refine Wi-Fi preferences in Internet Settings (SettingsLib)

- Add new layout for expressive style

Bug: 406770425
Flag: EXEMPT resource file only update
Test: Manual testing
Change-Id: Ice9f2072e355b6aefc21070ca62b133718de8123
parent d2216257
Loading
Loading
Loading
Loading
+55 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  Copyright (C) 2025 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.
  -->

<!-- Based off preference_two_target.xml with Material ripple moved to parent for full ripple. -->
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:minHeight="?android:attr/listPreferredItemHeightSmall"
    android:gravity="center_vertical"
    android:background="?android:attr/selectableItemBackground"
    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
    android:clipToPadding="false">

    <include layout="@layout/settingslib_expressive_preference_icon_frame"/>

    <include layout="@layout/settingslib_expressive_preference_text_frame"/>

    <include layout="@layout/settingslib_expressive_two_target_divider"/>

    <!-- Preference should place its actual preference widget here. -->
    <LinearLayout
        android:id="@android:id/widget_frame"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:minWidth="@dimen/two_target_min_width"
        android:gravity="center"
        android:orientation="vertical"/>

    <ImageButton
        android:id="@+id/icon_button"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:minWidth="@dimen/two_target_min_width"
        android:minHeight="@dimen/min_tap_target_size"
        android:layout_gravity="center"
        android:background="?android:attr/selectableItemBackground"
        android:visibility="gone">
    </ImageButton>
</LinearLayout>