Added samples for splitting touches across views.

Also modified the rotating button demo to use touch splitting.

Change-Id: I560736903651e6846f847a9bd743a24a1707f6d2
This commit is contained in:
Jeff Brown
2010-09-29 17:14:35 -07:00
parent 4e64cbb031
commit b39c4ba316
9 changed files with 151 additions and 482 deletions

View File

@@ -111,4 +111,23 @@
<item>*bzzt*\nYou\'re not very good at this, are you?</item>
<item>*bzzt*\nGo away...</item>
</string-array>
<!-- Used in view/Split Touch View example -->
<string-array name="cheese_responses">
<item>I\'m afraid we\'re fresh out.</item>
<item>I\'m afraid we never have that at the end of the week, sir. We get it fresh on Monday.</item>
<item>Ah. It\'s been on order, sir, for two weeks. I was expecting it this morning.</item>
<item>Normally, sir, yes. Today the van broke down.</item>
<item>No.</item>
<item>No.</item>
<item>No.</item>
<item>Yes, sir. It\'s, ah ..... it\'s a bit runny.</item>
<item>Well, it\'s very runny, actually, sir.</item>
<item>I think it\'s a bit runnier than you\'ll like it, sir.</item>
<item>Oh... The cat\'s eaten it.</item>
<item>No.</item>
<item>No.</item>
<item>No.</item>
<item>Mmm... cheese.</item>
</string-array>
</resources>

View File

@@ -653,6 +653,14 @@
<string name="secure_view_overlay_button2">Clicky?</string>
<string name="secure_view_overlay_button3">Think of the penguins!</string>
<string name="split_touch_view_description">
This activity demonstrates splitting touch events across multiple views
within a view group. Here we have two ListViews within a LinearLayout
that has the attribute android:splitMotionEvents set to "true".
Try scrolling both lists simultaneously using multiple fingers.
</string>
<string name="split_touch_view_cheese_toast">Do you have any %1$s?\n%2$s</string>
<string name="searchview_hint">Find something</string>
<string name="cheese_hunt_hint">Cheese hunt</string>
<string name="open_search">Expand</string>