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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:orientation="vertical" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" > 21 22 <RelativeLayout 23 android:layout_width="match_parent" 24 android:layout_height="match_parent" 25 android:layout_weight="1"> 26 27 <Button 28 android:layout_marginLeft="40dp" 29 android:layout_width="40dp" 30 android:layout_height="40dp" 31 android:layout_alignParentLeft="true" 32 android:layout_centerVertical="true" 33 android:elevation="48dp" 34 android:stateListAnimator="@null" 35 android:background="@drawable/rounded_edge_rect"/> 36 37 <Button 38 android:layout_marginRight="40dp" 39 android:layout_width="40dp" 40 android:layout_height="40dp" 41 android:layout_alignParentRight="true" 42 android:layout_centerVertical="true" 43 android:elevation="48dp" 44 android:background="@drawable/rounded_edge_rect" 45 android:stateListAnimator="@null"/> 46 47 </RelativeLayout> 48 49 <RelativeLayout 50 android:layout_width="match_parent" 51 android:layout_height="match_parent" 52 android:layout_weight="1"> 53 54 <Button 55 android:layout_marginLeft="40dp" 56 android:layout_width="48dp" 57 android:layout_height="40dp" 58 android:layout_alignParentLeft="true" 59 android:layout_centerVertical="true" 60 android:elevation="0dp" 61 android:background="@drawable/rounded_edge_rect" 62 android:stateListAnimator="@null"/> 63 64 <Button 65 android:layout_marginRight="40dp" 66 android:layout_width="48dp" 67 android:layout_height="40dp" 68 android:layout_alignParentRight="true" 69 android:layout_centerVertical="true" 70 android:elevation="100dp" 71 android:background="@drawable/rounded_edge_rect" 72 android:stateListAnimator="@null"/> 73 74 </RelativeLayout> 75 76 <RelativeLayout 77 android:layout_width="match_parent" 78 android:layout_height="match_parent" 79 android:layout_weight="1"> 80 81 <Button 82 android:layout_marginLeft="40dp" 83 android:layout_width="40dp" 84 android:layout_height="48dp" 85 android:layout_alignParentLeft="true" 86 android:layout_centerVertical="true" 87 android:elevation="12dp" 88 android:background="@drawable/rounded_edge_rect" 89 android:stateListAnimator="@null"/> 90 91 <Button 92 android:layout_marginRight="40dp" 93 android:layout_width="40dp" 94 android:layout_height="48dp" 95 android:layout_alignParentRight="true" 96 android:layout_centerVertical="true" 97 android:elevation="36dp" 98 android:background="@drawable/rounded_edge_rect" 99 android:stateListAnimator="@null"/> 100 101 </RelativeLayout> 102 103 <RelativeLayout 104 android:layout_width="match_parent" 105 android:layout_height="match_parent" 106 android:layout_weight="1"> 107 <Button 108 android:layout_marginLeft="40dp" 109 android:layout_width="48dp" 110 android:layout_height="40dp" 111 android:layout_alignParentLeft="true" 112 android:layout_centerVertical="true" 113 android:elevation="12dp" 114 android:stateListAnimator="@null" 115 android:background="@drawable/rounded_edge_rect" 116 android:alpha="0.1"/> 117 118 <Button 119 android:layout_marginRight="40dp" 120 android:layout_width="48dp" 121 android:layout_height="40dp" 122 android:layout_alignParentRight="true" 123 android:layout_centerVertical="true" 124 android:elevation="12dp" 125 android:stateListAnimator="@null" 126 android:background="@drawable/rounded_edge_rect" 127 android:alpha="0.5"/> 128 </RelativeLayout> 129</LinearLayout> 130