| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| ~ Copyright (C) 2017 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:orientation="vertical" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" > |
| |
| <RelativeLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_weight="1"> |
| |
| <Button |
| android:layout_marginLeft="40dp" |
| android:layout_width="48dp" |
| android:layout_height="40dp" |
| android:layout_alignParentLeft="true" |
| android:layout_centerVertical="true" |
| android:elevation="48dp" |
| android:text="48" |
| android:stateListAnimator="@null"/> |
| |
| <Button |
| android:layout_marginRight="40dp" |
| android:layout_width="48dp" |
| android:layout_height="40dp" |
| android:layout_alignParentRight="true" |
| android:layout_centerVertical="true" |
| android:elevation="48dp" |
| android:text="48" |
| android:stateListAnimator="@null"/> |
| |
| </RelativeLayout> |
| |
| <RelativeLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_weight="1"> |
| |
| <Button |
| android:layout_marginLeft="40dp" |
| android:layout_width="48dp" |
| android:layout_height="40dp" |
| android:layout_alignParentLeft="true" |
| android:layout_centerVertical="true" |
| android:elevation="0dp" |
| android:text="0" |
| android:stateListAnimator="@null"/> |
| |
| <Button |
| android:layout_marginRight="40dp" |
| android:layout_width="48dp" |
| android:layout_height="40dp" |
| android:layout_alignParentRight="true" |
| android:layout_centerVertical="true" |
| android:elevation="100dp" |
| android:text="100" |
| android:stateListAnimator="@null"/> |
| |
| </RelativeLayout> |
| |
| <RelativeLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_weight="1"> |
| |
| <Button |
| android:layout_marginLeft="40dp" |
| android:layout_width="48dp" |
| android:layout_height="40dp" |
| android:layout_alignParentLeft="true" |
| android:layout_centerVertical="true" |
| android:elevation="12dp" |
| android:text="12" |
| android:stateListAnimator="@null"/> |
| |
| <Button |
| android:layout_marginRight="40dp" |
| android:layout_width="48dp" |
| android:layout_height="40dp" |
| android:layout_alignParentRight="true" |
| android:layout_centerVertical="true" |
| android:elevation="36dp" |
| android:text="36" |
| android:stateListAnimator="@null"/> |
| |
| </RelativeLayout> |
| |
| <RelativeLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_weight="1"> |
| |
| <Button |
| android:layout_marginLeft="40dp" |
| android:layout_width="48dp" |
| android:layout_height="40dp" |
| android:layout_alignParentLeft="true" |
| android:layout_centerVertical="true" |
| android:elevation="12dp" |
| android:text="12" |
| android:stateListAnimator="@null" |
| android:alpha="0.1"/> |
| |
| <Button |
| android:layout_marginRight="40dp" |
| android:layout_width="48dp" |
| android:layout_height="40dp" |
| android:layout_alignParentRight="true" |
| android:layout_centerVertical="true" |
| android:elevation="12dp" |
| android:text="12" |
| android:stateListAnimator="@null" |
| android:alpha="0.5"/> |
| |
| </RelativeLayout> |
| |
| <!-- Test translation --> |
| <RelativeLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_weight="1"> |
| |
| <Button |
| android:translationX="5dp" |
| android:translationY="20dp" |
| android:layout_marginLeft="40dp" |
| android:layout_width="48dp" |
| android:layout_height="40dp" |
| android:layout_alignParentLeft="true" |
| android:layout_centerVertical="true" |
| android:elevation="12dp" |
| android:text="12" |
| android:alpha="5" |
| android:stateListAnimator="@null" /> |
| |
| <Button |
| android:translationX="5dp" |
| android:translationY="20dp" |
| android:layout_marginRight="40dp" |
| android:layout_width="48dp" |
| android:layout_height="40dp" |
| android:layout_alignParentRight="true" |
| android:layout_centerVertical="true" |
| android:elevation="12dp" |
| android:text="12" |
| android:stateListAnimator="@null" |
| android:background="@drawable/corner" /> |
| |
| </RelativeLayout> |
| </LinearLayout> |