1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2011 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 17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:orientation="horizontal" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 22 <LinearLayout 23 android:orientation="vertical" 24 android:layout_width="0dip" 25 android:layout_height="match_parent" 26 android:layout_weight="1"> 27 28 <Button 29 android:onClick="enableLayer" 30 android:layout_width="wrap_content" 31 android:layout_height="wrap_content" 32 android:text="Enable layer" /> 33 34 <Button 35 android:onClick="disableLayer" 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:text="Disable layer" /> 39 40 <Button 41 android:onClick="shrinkLayer" 42 android:layout_width="wrap_content" 43 android:layout_height="wrap_content" 44 android:text="Shrink layer" /> 45 46 <Button 47 android:onClick="growLayer" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:text="Grow layer" /> 51 52 <Button 53 android:onClick="enableClip" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:text="Circle clip" /> 57 58 <Button 59 android:onClick="disableClip" 60 android:layout_width="wrap_content" 61 android:layout_height="wrap_content" 62 android:text="No clip" /> 63 64 </LinearLayout> 65 66 <view class="com.android.test.hwui.ViewLayersActivity5$ClipFrameLayout" 67 android:id="@+id/container" 68 android:layout_width="0dip" 69 android:layout_height="match_parent" 70 android:layout_weight="1"> 71 72 <ListView 73 android:id="@+id/list1" 74 android:layout_width="match_parent" 75 android:layout_height="match_parent" /> 76 77 </view> 78 79</LinearLayout> 80