diff options
author | Dianne Hackborn <hackbod@google.com> | 2015-04-02 18:25:35 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2015-04-02 18:43:31 -0700 |
commit | 5688b03f7f4fafd671451ff73103be0f2388b32e (patch) | |
tree | 03f3362f7919592e14f2bd56957fc4c722397e26 /tests/VoiceInteraction/res | |
parent | 3425dae8dc63372e8944dce43f7ed2d567512248 (diff) | |
download | frameworks_base-5688b03f7f4fafd671451ff73103be0f2388b32e.zip frameworks_base-5688b03f7f4fafd671451ff73103be0f2388b32e.tar.gz frameworks_base-5688b03f7f4fafd671451ff73103be0f2388b32e.tar.bz2 |
Add quick and dirty async AssistStructure building.
New APIs on ViewAssistStructure all the app to request to
build a sub-tree asynchronously and indicate when it is done
with that. The overall AssistStructure is now only flattened
and transfered on-demand, when the app receiving it requests
its data -- and at that point we can wait for any asynchronous
building to complete.
New AsyncStructure view is a very simple example of using this
to asynchronously build a child view.
Change-Id: I14f9199bee64915ad3dc80b2190916ec874308af
Diffstat (limited to 'tests/VoiceInteraction/res')
-rw-r--r-- | tests/VoiceInteraction/res/layout/main.xml | 8 | ||||
-rw-r--r-- | tests/VoiceInteraction/res/values/strings.xml | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/VoiceInteraction/res/layout/main.xml b/tests/VoiceInteraction/res/layout/main.xml index 3d7a418..092d37d 100644 --- a/tests/VoiceInteraction/res/layout/main.xml +++ b/tests/VoiceInteraction/res/layout/main.xml @@ -26,6 +26,14 @@ android:text="@string/start" /> + <com.android.test.voiceinteraction.AsyncStructure + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="64dp" + android:paddingBottom="64dp" + android:text="@string/asyncStructure" + /> + </LinearLayout> diff --git a/tests/VoiceInteraction/res/values/strings.xml b/tests/VoiceInteraction/res/values/strings.xml index 5331457..942c931 100644 --- a/tests/VoiceInteraction/res/values/strings.xml +++ b/tests/VoiceInteraction/res/values/strings.xml @@ -17,6 +17,7 @@ <resources> <string name="start">Start</string> + <string name="asyncStructure">(Async structure goes here)</string> <string name="confirm">Confirm</string> <string name="abort">Abort</string> <string name="complete">Complete</string> |