summaryrefslogtreecommitdiffstats
path: root/tests/TransitionTests/res/layout/fading_test_scene_2.xml
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2012-05-18 14:17:57 -0700
committerChet Haase <chet@google.com>2013-04-18 13:33:13 -0700
commitfaebd8f0795b7d275fb4e503533c8c0c4a9acc21 (patch)
tree464de8bb5dcd9ae99402ebb630d329dc8ce953cc /tests/TransitionTests/res/layout/fading_test_scene_2.xml
parentb3caa9200a61cde1178a2c83419de56579d3c5a5 (diff)
downloadframeworks_base-faebd8f0795b7d275fb4e503533c8c0c4a9acc21.zip
frameworks_base-faebd8f0795b7d275fb4e503533c8c0c4a9acc21.tar.gz
frameworks_base-faebd8f0795b7d275fb4e503533c8c0c4a9acc21.tar.bz2
First draft of Scenes & Transitions feature
This checkin has preliminary API (in flux, definitely changes still to be made) and implementation for a new "Scenes & Transitions" feature. The current implementation allows you to define different Scenes (via layout resource IDs or callbacks) and Transitions to be used when changing to those scenes. By default, scene changes will use AutoTransition, which generally does the right thing. There are no overview docs or tutorials yet. The best way to learn how things work is to see the code for the various tests in frameworks/base/tests/TransitionTests. Expect the API to change. Expect the implementation to change (mostly to add more functionality). Expect bugs, but tell me if things do not work as expected. Change-Id: Ib025a9f565678b225afa4759325cf6d496cc7215
Diffstat (limited to 'tests/TransitionTests/res/layout/fading_test_scene_2.xml')
-rw-r--r--tests/TransitionTests/res/layout/fading_test_scene_2.xml34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/TransitionTests/res/layout/fading_test_scene_2.xml b/tests/TransitionTests/res/layout/fading_test_scene_2.xml
new file mode 100644
index 0000000..baf5b4d
--- /dev/null
+++ b/tests/TransitionTests/res/layout/fading_test_scene_2.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:id="@+id/container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <Button
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/submit"
+ android:onClick="sendMessage"
+ android:id="@+id/sceneSwitchButton"/>
+ <Button
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/invisibleButton"
+ android:visibility="invisible"
+ android:id="@+id/invisibleButton"/>
+ <Button
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/goneButton"
+ android:visibility="gone"
+ android:id="@+id/goneButton"/>
+
+ <Button
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/button"
+ android:text="@string/button"/>
+
+</LinearLayout> \ No newline at end of file