Files
android_development/samples/ApiDemos/res/layout/rotation_animation.xml
Robert Carr 3ca1a928a4 Include seamless rotation mode in API Demo.
Test: Try the RotationAnimation activity of API demos.
Change-Id: I4f3aba54d310ecbe06776190a4096c71fdf85d24
2016-10-18 14:42:10 -07:00

80 lines
3.0 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"
/>
<RadioButton
android:id="@+id/seamless"
android:layout_marginStart="6dp"
android:text="@string/rotation_animation_seamless"
/>
</RadioGroup>
</LinearLayout>
</LinearLayout>