mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
> Removing support for page drag-n-drop from pagedView > Removing Overview UI from Launcher3 without quickstep and using options popup instead > Removing touch handlers from CellLayouts and showing options popup based on workspace long press > Excluding touch outside inset when showing the popup Bug: 74136505 Change-Id: I34c2a7ff58452db26f5d1a85d554be40fc75f2b8
97 lines
3.8 KiB
XML
97 lines
3.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2018 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.views.OptionsPopupView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:launcher="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="96dp"
|
|
android:background="?attr/popupColorPrimary"
|
|
android:elevation="@dimen/deep_shortcuts_elevation"
|
|
android:orientation="horizontal"
|
|
launcher:layout_ignoreInsets="true">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/wallpaper_button"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="?android:attr/selectableItemBackground">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:drawablePadding="4dp"
|
|
android:drawableTint="?android:attr/textColorPrimary"
|
|
android:drawableTop="@drawable/ic_wallpaper"
|
|
android:fontFamily="sans-serif-condensed"
|
|
android:gravity="center"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:text="@string/wallpaper_button_text"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="12sp"/>
|
|
</FrameLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/widget_button"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="?android:attr/selectableItemBackground">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:drawablePadding="4dp"
|
|
android:drawableTint="?android:attr/textColorPrimary"
|
|
android:drawableTop="@drawable/ic_widget"
|
|
android:fontFamily="sans-serif-condensed"
|
|
android:gravity="center"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:text="@string/widget_button_text"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="12sp"/>
|
|
|
|
</FrameLayout>
|
|
|
|
<FrameLayout
|
|
android:id="@+id/settings_button"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:background="?android:attr/selectableItemBackground">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:drawablePadding="4dp"
|
|
android:drawableTint="?android:attr/textColorPrimary"
|
|
android:drawableTop="@drawable/ic_setting"
|
|
android:fontFamily="sans-serif-condensed"
|
|
android:gravity="center"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:text="@string/settings_button_text"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textSize="12sp"/>
|
|
|
|
</FrameLayout>
|
|
|
|
</com.android.launcher3.views.OptionsPopupView> |