| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 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> |