Chet Haase 867a86613d Various fixes/cleanup in Scenes and Transitions
setDuration() wasn't handled correctly for TransitionGroup; it should
propagate the value to its children.

Also, videos with no ids were not being handled correctly. The transition code was
using the default id on those views (-1) to store start/end data about the view,
causing multiple non-id views to clobber values in the hashmaps. The correct approach
should be to ignore default id values - only store information about the view
instances, not about the unset ids.

Also, added a new test InterruptTest to be used to fix the current behavior of
not handling situations where new transitions start while old ones are still taking place.

Change-Id: I4e880bdbb33cc26d487bceb0d56e463e72f7621f
2013-06-03 16:37:05 -07:00

45 lines
1.8 KiB
XML

<?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">
<RadioGroup android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RadioButton android:id="@+id/scene1RB"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/state1"
android:onClick="onRadioButtonClicked"/>
<RadioButton android:id="@+id/scene2RB"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/state2"
android:onClick="onRadioButtonClicked"/>
<RadioButton android:id="@+id/scene3RB"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/state3"
android:onClick="onRadioButtonClicked"/>
<RadioButton android:id="@+id/scene4RB"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/state4"
android:onClick="onRadioButtonClicked"/>
</RadioGroup>
<LinearLayout
android:orientation="vertical"
android:id="@+id/sceneRoot"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/interruption_inner_1"/>
</LinearLayout>
</LinearLayout>