diff options
author | Winson Chung <winsonc@google.com> | 2012-01-12 14:37:57 -0800 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2012-01-12 14:39:18 -0800 |
commit | 604f6df08860406543b22a8f59eded909ffb23a6 (patch) | |
tree | e57c9a6db6155f8ae9e9bf545fb53d91dda6f3a4 /res | |
parent | 25595a611aa3ced225cc2f3ad9cc3c0ef9241912 (diff) | |
download | android_packages_apps_Trebuchet-604f6df08860406543b22a8f59eded909ffb23a6.tar.gz android_packages_apps_Trebuchet-604f6df08860406543b22a8f59eded909ffb23a6.tar.bz2 android_packages_apps_Trebuchet-604f6df08860406543b22a8f59eded909ffb23a6.zip |
Adding workaround to make voice button target area larger (Bug 5653332)
Change-Id: I8c4e940f9ae01ac4f6808ecfb10035249c12a499
Diffstat (limited to 'res')
-rw-r--r-- | res/layout-port/launcher.xml | 9 | ||||
-rw-r--r-- | res/values/attrs.xml | 7 |
2 files changed, 16 insertions, 0 deletions
diff --git a/res/layout-port/launcher.xml b/res/layout-port/launcher.xml index 062656fa2..d7b3fee40 100644 --- a/res/layout-port/launcher.xml +++ b/res/layout-port/launcher.xml @@ -70,6 +70,15 @@ android:id="@+id/qsb_bar" layout="@layout/qsb_bar" /> + <com.android.launcher2.DrawableStateProxyView + android:id="@+id/voice_button_proxy" + android:layout_width="@dimen/qsb_bar_height" + android:layout_height="@dimen/qsb_bar_height" + android:layout_gravity="right" + android:clickable="true" + android:onClick="onClickVoiceButton" + launcher:sourceViewId="@+id/voice_button" /> + <include layout="@layout/apps_customize_pane" android:id="@+id/apps_customize_pane" android:layout_width="match_parent" diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 125856287..9ed824b44 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -27,6 +27,13 @@ <skip /> + <!-- DrawableStateProxyView specific attributes. These attributes are used to customize + a DrawableStateProxyView view in XML files. --> + <declare-styleable name="DrawableStateProxyView"> + <!-- The source view to delegate touch presses events to. --> + <attr name="sourceViewId" format="integer" /> + </declare-styleable> + <!-- Cling specific attributes. These attributes are used to customize the cling in XML files. --> <declare-styleable name="Cling"> |