diff options
author | Dianne Hackborn <hackbod@google.com> | 2015-04-22 16:36:39 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2015-04-22 17:36:48 -0700 |
commit | 799d8d0a0fa42d360f2ccd9cc66aace8eb167c67 (patch) | |
tree | 990d965804347d2047ac03f1b77c7b966252ebb1 /tests/VoiceInteraction | |
parent | a1f6211e795be5101ab763dd451b307ae56c8cad (diff) | |
download | frameworks_base-799d8d0a0fa42d360f2ccd9cc66aace8eb167c67.zip frameworks_base-799d8d0a0fa42d360f2ccd9cc66aace8eb167c67.tar.gz frameworks_base-799d8d0a0fa42d360f2ccd9cc66aace8eb167c67.tar.bz2 |
Add "assist block" API.
To prevent assist structure traversal down the view hierarchy.
Change-Id: I50ce5f8de6f2eca3cb862de8eacd6422c40a2f7c
Diffstat (limited to 'tests/VoiceInteraction')
-rw-r--r-- | tests/VoiceInteraction/res/layout/main.xml | 6 | ||||
-rw-r--r-- | tests/VoiceInteraction/res/xml/interaction_service.xml | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/tests/VoiceInteraction/res/layout/main.xml b/tests/VoiceInteraction/res/layout/main.xml index 092d37d..34a7563 100644 --- a/tests/VoiceInteraction/res/layout/main.xml +++ b/tests/VoiceInteraction/res/layout/main.xml @@ -34,6 +34,12 @@ android:text="@string/asyncStructure" /> + <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" + android:assistBlocked="true" + android:textAppearance="?android:attr/textAppearanceMedium" + android:text="This won't be included in assist." + /> + </LinearLayout> diff --git a/tests/VoiceInteraction/res/xml/interaction_service.xml b/tests/VoiceInteraction/res/xml/interaction_service.xml index ce5669c..789493a 100644 --- a/tests/VoiceInteraction/res/xml/interaction_service.xml +++ b/tests/VoiceInteraction/res/xml/interaction_service.xml @@ -20,4 +20,5 @@ <voice-interaction-service xmlns:android="http://schemas.android.com/apk/res/android" android:sessionService="com.android.test.voiceinteraction.MainInteractionSessionService" android:recognitionService="com.android.test.voiceinteraction.MainRecognitionService" - android:settingsActivity="com.android.test.voiceinteraction.SettingsActivity" /> + android:settingsActivity="com.android.test.voiceinteraction.SettingsActivity" + android:supportsAssistGesture="true" /> |