1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2017 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
19              android:orientation="vertical"
20              android:layout_width="match_parent"
21              android:layout_height="match_parent" >
22
23    <RelativeLayout
24        android:layout_width="match_parent"
25        android:layout_height="match_parent"
26        android:layout_weight="1">
27
28        <Button
29            android:layout_marginLeft="40dp"
30            android:layout_width="48dp"
31            android:layout_height="40dp"
32            android:layout_alignParentLeft="true"
33            android:layout_centerVertical="true"
34            android:elevation="48dp"
35            android:text="48"
36            android:stateListAnimator="@null"/>
37
38        <Button
39            android:layout_marginRight="40dp"
40            android:layout_width="48dp"
41            android:layout_height="40dp"
42            android:layout_alignParentRight="true"
43            android:layout_centerVertical="true"
44            android:elevation="48dp"
45            android:text="48"
46            android:stateListAnimator="@null"/>
47
48    </RelativeLayout>
49
50    <RelativeLayout
51        android:layout_width="match_parent"
52        android:layout_height="match_parent"
53        android:layout_weight="1">
54
55        <Button
56            android:layout_marginLeft="40dp"
57            android:layout_width="48dp"
58            android:layout_height="40dp"
59            android:layout_alignParentLeft="true"
60            android:layout_centerVertical="true"
61            android:elevation="0dp"
62            android:text="0"
63            android:stateListAnimator="@null"/>
64
65        <Button
66            android:layout_marginRight="40dp"
67            android:layout_width="48dp"
68            android:layout_height="40dp"
69            android:layout_alignParentRight="true"
70            android:layout_centerVertical="true"
71            android:elevation="100dp"
72            android:text="100"
73            android:stateListAnimator="@null"/>
74
75    </RelativeLayout>
76
77    <RelativeLayout
78        android:layout_width="match_parent"
79        android:layout_height="match_parent"
80        android:layout_weight="1">
81
82        <Button
83            android:layout_marginLeft="40dp"
84            android:layout_width="48dp"
85            android:layout_height="40dp"
86            android:layout_alignParentLeft="true"
87            android:layout_centerVertical="true"
88            android:elevation="12dp"
89            android:text="12"
90            android:stateListAnimator="@null"/>
91
92        <Button
93            android:layout_marginRight="40dp"
94            android:layout_width="48dp"
95            android:layout_height="40dp"
96            android:layout_alignParentRight="true"
97            android:layout_centerVertical="true"
98            android:elevation="36dp"
99            android:text="36"
100            android:stateListAnimator="@null"/>
101
102    </RelativeLayout>
103
104    <RelativeLayout
105        android:layout_width="match_parent"
106        android:layout_height="match_parent"
107        android:layout_weight="1">
108
109        <Button
110            android:layout_marginLeft="40dp"
111            android:layout_width="48dp"
112            android:layout_height="40dp"
113            android:layout_alignParentLeft="true"
114            android:layout_centerVertical="true"
115            android:elevation="12dp"
116            android:text="12"
117            android:stateListAnimator="@null"
118            android:alpha="0.1"/>
119
120        <Button
121            android:layout_marginRight="40dp"
122            android:layout_width="48dp"
123            android:layout_height="40dp"
124            android:layout_alignParentRight="true"
125            android:layout_centerVertical="true"
126            android:elevation="12dp"
127            android:text="12"
128            android:stateListAnimator="@null"
129            android:alpha="0.5"/>
130
131    </RelativeLayout>
132
133    <!-- Test translation -->
134    <RelativeLayout
135        android:layout_width="match_parent"
136        android:layout_height="match_parent"
137        android:layout_weight="1">
138
139        <Button
140            android:translationX="5dp"
141            android:translationY="20dp"
142            android:layout_marginLeft="40dp"
143            android:layout_width="48dp"
144            android:layout_height="40dp"
145            android:layout_alignParentLeft="true"
146            android:layout_centerVertical="true"
147            android:elevation="12dp"
148            android:text="12"
149            android:alpha="5"
150            android:stateListAnimator="@null" />
151
152        <Button
153            android:translationX="5dp"
154            android:translationY="20dp"
155            android:layout_marginRight="40dp"
156            android:layout_width="48dp"
157            android:layout_height="40dp"
158            android:layout_alignParentRight="true"
159            android:layout_centerVertical="true"
160            android:elevation="12dp"
161            android:text="12"
162            android:stateListAnimator="@null"
163            android:background="@drawable/corner" />
164
165    </RelativeLayout>
166</LinearLayout>