• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2Copyright 2014 The Android Open Source Project
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15-->
16
17<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:tools="http://schemas.android.com/tools"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    android:paddingBottom="@dimen/vertical_page_margin"
22    android:paddingLeft="@dimen/horizontal_page_margin"
23    android:paddingRight="@dimen/horizontal_page_margin"
24    android:paddingTop="@dimen/vertical_page_margin">
25
26    <RelativeLayout
27        android:layout_width="match_parent"
28        android:layout_height="match_parent">
29
30        <TextView
31            android:id="@+id/interpolatorLabel"
32            android:layout_width="wrap_content"
33            android:layout_height="wrap_content"
34            android:layout_alignBottom="@+id/interpolatorSpinner"
35            android:layout_alignParentStart="true"
36            android:layout_alignParentTop="true"
37            android:gravity="center_vertical"
38            android:text="@string/interpolator" />
39
40        <Spinner
41            android:id="@+id/interpolatorSpinner"
42            android:layout_width="wrap_content"
43            android:layout_height="wrap_content"
44            android:layout_alignParentTop="true"
45            android:layout_toEndOf="@+id/interpolatorLabel" />
46
47
48        <SeekBar
49            android:id="@+id/durationSeek"
50            android:layout_width="match_parent"
51            android:layout_height="wrap_content"
52            android:layout_alignParentEnd="true"
53            android:layout_below="@+id/durationLabel"
54            android:max="5000" />
55
56        <TextView
57            android:id="@+id/durationLabel"
58            android:layout_width="wrap_content"
59            android:layout_height="wrap_content"
60            android:layout_alignParentStart="true"
61            android:layout_below="@+id/interpolatorSpinner"
62            android:gravity="center_vertical" />
63
64        <Button
65            android:id="@+id/animateButton"
66            android:layout_width="wrap_content"
67            android:layout_height="wrap_content"
68            android:layout_below="@+id/durationSeek"
69            android:layout_centerHorizontal="true"
70            android:text="@string/animate" />
71
72        <View
73            android:id="@+id/square"
74            android:layout_width="match_parent"
75            android:layout_height="match_parent"
76            android:layout_alignParentBottom="true"
77            android:layout_below="@+id/animateButton"
78            android:layout_centerHorizontal="true"
79            android:layout_margin="10dp"
80            android:background="@color/purple"
81            android:minHeight="100dp"
82            android:minWidth="100dp" />
83
84    </RelativeLayout>
85
86</ScrollView>