Files
android_development/samples/ApiDemos/res/layout/rotation_animation.xml
Craig Mautner d540e6e0b7 Add demo for rotation animation.
New feature in App/Activity/Rotation Animation for overriding
default rotation animation with crossfade or jumpcut.

Change-Id: I3cb3cdb26770e6c7d040f4492eb02149af73b757
2013-02-25 18:21:56 -08:00

75 lines
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2013 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:textSize="16sp"
android:textStyle="bold"
android:text="@string/rotation_animation_description"
/>
<CheckBox
android:id="@+id/windowFullscreen"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="@string/rotation_animation_fullscreen"
/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:orientation="vertical"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:textSize="16sp"
android:textStyle="bold"
android:text="@string/rotation_animation_choices"
/>
<RadioGroup
android:id="@+id/rotation_radio_group"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:checkedButton="@+id/rotation_anim_selection"
>
<RadioButton
android:id="@+id/rotate"
android:checked="true"
android:text="@string/rotation_animation_rotate"
/>
<RadioButton
android:id="@+id/crossfade"
android:layout_marginStart="6dp"
android:text="@string/rotation_animation_crossfade"
/>
<RadioButton
android:id="@+id/jumpcut"
android:layout_marginStart="6dp"
android:text="@string/rotation_animation_jumpcut"
/>
</RadioGroup>
</LinearLayout>
</LinearLayout>