XML代码:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<android.gesture.GestureOverlayView xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/gestureOverlayView1"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_alignParentLeft=
"true"
android:layout_alignParentTop=
"true"
>
<RelativeLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".MainActivity"
>
<TextView
android:id=
"@+id/textView1"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignParentTop=
"true"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"30dp"
android:text=
"Large Text"
android:textAppearance=
"?android:attr/textAppearanceLarge"
/>
<CheckBox
android:id=
"@+id/checkBox1"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/textView1"
android:layout_centerHorizontal=
"true"
android:layout_marginTop=
"24dp"
android:text=
"CheckBox"
/>
</RelativeLayout>
</android.gesture.GestureOverlayView>
|
本文转自 glblong 51CTO博客,原文链接:http://blog.51cto.com/glblong/1228590,如需转载请自行联系原作者