1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2014 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 <FrameLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/card_parent" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent" 21 android:clipChildren="false" 22 android:clipToPadding="false" 23 android:orientation="horizontal" > 24 <LinearLayout 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:orientation="horizontal"> 28 <CheckBox 29 android:id="@+id/tilt_check" 30 android:layout_width="wrap_content" 31 android:layout_height="wrap_content" 32 android:checked="false" 33 android:text="@string/enable_tilt"/> 34 <CheckBox 35 android:id="@+id/shading_check" 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:checked="false" 39 android:text="@string/enable_shading"/> 40 <Button 41 android:id="@+id/shape_select" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:text="@string/select_shape"/> 45 </LinearLayout> 46 47 <TextView 48 android:id="@+id/card" 49 android:layout_width="150dp" 50 android:layout_height="150dp" 51 android:background="@drawable/round_rect" 52 android:clipToPadding="false" 53 android:gravity="center" 54 android:padding="20dp" 55 android:text="@string/draggable_card" 56 android:textSize="20sp" 57 android:elevation="2dp"/> 58 </FrameLayout>