summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authornebkat <nebkat@gmail.com>2011-12-25 13:16:01 +0000
committernebkat <nebkat@gmail.com>2011-12-27 11:08:13 +0000
commitc1d7bc76c7f214ce713d196b973f90925df62331 (patch)
tree2dcf6a828e5cfd6de240acbf2cb6a6a45f716138 /res/layout
parente0b41c2232deb9ad121bc64a9851543c10c87c68 (diff)
downloadandroid_packages_apps_Trebuchet-c1d7bc76c7f214ce713d196b973f90925df62331.tar.gz
android_packages_apps_Trebuchet-c1d7bc76c7f214ce713d196b973f90925df62331.tar.bz2
android_packages_apps_Trebuchet-c1d7bc76c7f214ce713d196b973f90925df62331.zip
Launcher: Software Menu Button
Change-Id: Ief9a0bce26b557f10c341c79cd4c9a96d591f9cb
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/apps_customize_pane.xml6
-rw-r--r--res/layout/overflow_menu_button.xml32
2 files changed, 38 insertions, 0 deletions
diff --git a/res/layout/apps_customize_pane.xml b/res/layout/apps_customize_pane.xml
index f41cd34f3..272ed2896 100644
--- a/res/layout/apps_customize_pane.xml
+++ b/res/layout/apps_customize_pane.xml
@@ -40,6 +40,12 @@
android:tabStripEnabled="false"
android:divider="@null" />
<include
+ android:id="@+id/overflow_menu_button"
+ layout="@layout/overflow_menu_button"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_gravity="right" />
+ <include
android:id="@+id/market_button"
layout="@layout/market_button"
android:layout_width="wrap_content"
diff --git a/res/layout/overflow_menu_button.xml b/res/layout/overflow_menu_button.xml
new file mode 100644
index 000000000..9438cc6c6
--- /dev/null
+++ b/res/layout/overflow_menu_button.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2011 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.
+-->
+<TextView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:launcher="http://schemas.android.com/apk/res/com.cyanogenmod.trebuchet"
+ style="@style/MarketButton"
+ android:onClick="onClickOverflowMenuButton"
+ android:drawableLeft="@drawable/ic_menu_overflow"
+ android:gravity="center"
+ android:paddingLeft="16dp"
+ android:paddingRight="16dp"
+ android:background="@drawable/tab_widget_indicator_selector"
+ android:contentDescription="@string/menu"
+ android:shadowColor="@color/workspace_all_apps_and_delete_zone_text_shadow_color"
+ android:shadowDx="0.0"
+ android:shadowDy="0.0"
+ android:shadowRadius="2.0"
+ android:focusable="true"
+ android:clickable="true" />