mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
- Hitting a ctrl key combo will actually call onPrepareOptionsMenu(), which will change the state of the workspace incorrectly. Instead, listen for the menu button, and only allow the user to enter overview mode if they are currently not dragging or in an overlay state (like all apps or widgets). - Also making the overview buttons focusable so that they are focused when you go into overview mode. Bug: 22483367 Change-Id: Ie6e9febd8a5a4e7ad25d745639d42d1c7b9801b4
69 lines
2.6 KiB
XML
69 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2013 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.
|
|
-->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal|bottom"
|
|
android:gravity="top"
|
|
android:orientation="horizontal" >
|
|
|
|
<TextView
|
|
android:id="@+id/wallpaper_button"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:drawablePadding="4dp"
|
|
android:drawableTop="@drawable/wallpaper_button"
|
|
android:fontFamily="sans-serif-condensed"
|
|
android:gravity="center_horizontal"
|
|
android:text="@string/wallpaper_button_text"
|
|
android:textAllCaps="true"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="12sp"
|
|
android:focusable="true" />
|
|
|
|
<TextView
|
|
android:id="@+id/widget_button"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:drawablePadding="4dp"
|
|
android:drawableTop="@drawable/widget_button"
|
|
android:fontFamily="sans-serif-condensed"
|
|
android:gravity="center_horizontal"
|
|
android:text="@string/widget_button_text"
|
|
android:textAllCaps="true"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="12sp"
|
|
android:focusable="true" />
|
|
|
|
<TextView
|
|
android:id="@+id/settings_button"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:drawablePadding="4dp"
|
|
android:drawableTop="@drawable/setting_button"
|
|
android:fontFamily="sans-serif-condensed"
|
|
android:gravity="center_horizontal"
|
|
android:text="@string/settings_button_text"
|
|
android:textAllCaps="true"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="12sp"
|
|
android:focusable="true" />
|
|
|
|
</LinearLayout> |