mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 18:28:20 +00:00
- Breakout CL part 3 - This is a breakout cl from ag/24272821 to make it more readable and atomic. - This cl consist removal of an option from taskbar divider popup meu which is no longer required and other changes regarding the removal like ripple. Test: Manual, Visual Bug: 265170176 Flag: ENABLE_TASKBAR_PINNING Change-Id: I3664df7a134cc0eb5b4ed856c7e0730ef1b75dea
62 lines
2.4 KiB
XML
62 lines
2.4 KiB
XML
<?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.
|
|
-->
|
|
<com.android.launcher3.taskbar.TaskbarDividerPopupView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="@dimen/taskbar_pinning_popup_menu_width"
|
|
android:layout_height="wrap_content"
|
|
android:focusable="true"
|
|
android:background="@drawable/popup_background_material_u"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/taskbar_switch_option"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="52dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:elevation="2dp"
|
|
android:focusable="true"
|
|
android:clickable="true"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:background="@drawable/rounded_popup_ripple"
|
|
android:paddingEnd="10dp"
|
|
android:paddingStart="10dp"
|
|
android:theme="@style/PopupItem">
|
|
|
|
<View
|
|
android:layout_margin="6dp"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:background="@drawable/ic_visibility"
|
|
android:backgroundTint="?android:attr/textColorPrimary" />
|
|
|
|
<Switch
|
|
style="@style/BaseIcon"
|
|
android:id="@+id/taskbar_pinning_switch"
|
|
android:background="@null"
|
|
android:clickable="false"
|
|
android:gravity="start|center_vertical"
|
|
android:textAlignment="viewStart"
|
|
android:paddingStart="12dp"
|
|
android:singleLine="true"
|
|
android:ellipsize="end"
|
|
android:textSize="14sp"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:text="@string/always_show_taskbar" />
|
|
|
|
</LinearLayout>
|
|
</com.android.launcher3.taskbar.TaskbarDividerPopupView> |