11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2+ <FrameLayout xmlns : android =" http://schemas.android.com/apk/res/android"
33 xmlns : app =" http://schemas.android.com/apk/res-auto"
44 xmlns : tools =" http://schemas.android.com/tools"
5- android : orientation =" vertical"
65 android : layout_width =" match_parent"
7- android : layout_height =" match_parent" >
8-
9- <TextView
10- android : id =" @+id/click"
11- android : layout_marginTop =" 10dp"
12- android : layout_gravity =" center_horizontal"
13- android : gravity =" center"
14- android : padding =" 3dp"
15- android : textSize =" 13dp"
16- android : layout_width =" wrap_content"
17- android : layout_height =" wrap_content"
18- android : textColor =" #000000"
19- android : layout_margin =" 10dp"
20- android : text =" 点击跳入第二个fragment" />
21-
22-
23- <TextView
24- android : id =" @+id/show_dialog"
25- android : layout_marginTop =" 10dp"
26- android : padding =" 5dp"
27- android : textSize =" 13dp"
28- android : layout_gravity =" center_horizontal"
29- android : layout_width =" wrap_content"
30- android : layout_height =" wrap_content"
31- android : textColor =" #000000"
32- android : text =" 弹一个dialog" />
33-
34-
35- <TextView
36- android : id =" @+id/click3"
37- android : layout_marginTop =" 10dp"
38- android : padding =" 5dp"
39- android : textSize =" 13dp"
40- android : layout_gravity =" center_horizontal"
41- android : layout_width =" wrap_content"
42- android : layout_height =" wrap_content"
43- android : textColor =" @color/teal_200"
44- android : text =" 设置了长按事件" />
45-
46- <com .example.layoutinspector.MyView
47- android : layout_marginTop =" 10dp"
48- android : layout_width =" match_parent"
49- android : layout_height =" wrap_content" />
6+ android : layout_height =" match_parent"
7+ android : orientation =" vertical" >
508
51- <LinearLayout
52- android : orientation = " vertical "
53- android : gravity = " bottom "
9+ <LinearLayout xmlns : android = " http://schemas.android.com/apk/res/android "
10+ xmlns : app = " http://schemas.android.com/apk/res-auto "
11+ xmlns : tools = " http://schemas.android.com/tools "
5412 android : layout_width =" match_parent"
55- android : layout_height =" wrap_content" >
13+ android : layout_height =" match_parent"
14+ android : orientation =" vertical" >
5615
5716 <TextView
58- android : layout_marginTop =" 10dp"
59- android : layout_marginBottom =" 20dp"
60- android : layout_marginLeft =" 20dp"
61- android : padding =" 5dp"
62- android : textSize =" 13dp"
63- android : gravity =" center_horizontal"
64- android : layout_gravity =" center_horizontal"
65- android : id =" @+id/show_pupupwindow"
17+ android : id =" @+id/click"
6618 android : layout_width =" wrap_content"
6719 android : layout_height =" wrap_content"
20+ android : layout_gravity =" center_horizontal"
21+ android : layout_margin =" 10dp"
22+ android : layout_marginTop =" 10dp"
23+ android : gravity =" center"
24+ android : padding =" 3dp"
25+ android : text =" 点击跳入第二个fragment"
6826 android : textColor =" #000000"
69- android : text =" showAsDropDown(anchor)方法弹一个popupwindow" />
27+ android : textSize =" 13dp" />
28+
7029
7130 <TextView
72- android : layout_marginTop =" 10dp"
73- android : layout_marginBottom =" 20dp"
74- android : layout_marginLeft =" 20dp"
75- android : padding =" 5dp"
76- android : textSize =" 13dp"
77- android : gravity =" center_horizontal"
78- android : layout_gravity =" center_horizontal"
79- android : id =" @+id/show_pupupwindow1"
31+ android : id =" @+id/show_dialog"
8032 android : layout_width =" wrap_content"
8133 android : layout_height =" wrap_content"
82- android : textColor =" #000000"
83- android : text =" showAsDropDown(anchor,xoff,yoff)方法弹一个popupwindow" />
84-
85- <TextView
34+ android : layout_gravity =" center_horizontal"
8635 android : layout_marginTop =" 10dp"
87- android : layout_marginBottom =" 20dp"
88- android : layout_marginLeft =" 20dp"
8936 android : padding =" 5dp"
90- android : textSize =" 13dp"
91- android : gravity =" center_horizontal"
92- android : layout_gravity =" center_horizontal"
93- android : id =" @+id/show_pupupwindow2"
94- android : layout_width =" wrap_content"
95- android : layout_height =" wrap_content"
37+ android : text =" 弹一个dialog"
9638 android : textColor =" #000000"
97- android : text = " showAsDropDown(anchor,xoff,yoff,gravity)方法弹一个popupwindow " />
39+ android : textSize = " 13dp " />
9840
9941
10042 <TextView
101- android : layout_marginTop =" 10dp"
102- android : layout_marginBottom =" 20dp"
103- android : layout_marginLeft =" 20dp"
104- android : padding =" 5dp"
105- android : textSize =" 13dp"
106- android : gravity =" center_horizontal"
107- android : layout_gravity =" center_horizontal"
108- android : id =" @+id/show_pupupwindow3"
43+ android : id =" @+id/click3"
10944 android : layout_width =" wrap_content"
11045 android : layout_height =" wrap_content"
111- android : textColor =" #000000"
112- android : text =" showAtLocation方法弹一个popupwindow" />
113-
114- <TextView
115- android : id =" @+id/show_toast"
46+ android : layout_gravity =" center_horizontal"
11647 android : layout_marginTop =" 10dp"
117- android : layout_marginBottom =" 20dp"
11848 android : padding =" 5dp"
119- android : textSize =" 13dp"
120- android : gravity =" center_horizontal"
121- android : layout_gravity =" center_horizontal"
122- android : layout_width =" wrap_content"
49+ android : text =" 设置了长按事件"
50+ android : textColor =" @color/teal_200"
51+ android : textSize =" 13dp" />
52+
53+ <com .example.layoutinspector.MyView
54+ android : layout_width =" match_parent"
12355 android : layout_height =" wrap_content"
124- android : textColor =" #000000"
125- android : text =" 弹一个toast" />
56+ android : layout_marginTop =" 10dp" />
57+
58+ <LinearLayout
59+ android : layout_width =" match_parent"
60+ android : layout_height =" wrap_content"
61+ android : gravity =" bottom"
62+ android : orientation =" vertical" >
63+
64+ <TextView
65+ android : id =" @+id/show_pupupwindow"
66+ android : layout_width =" wrap_content"
67+ android : layout_height =" wrap_content"
68+ android : layout_gravity =" center_horizontal"
69+ android : layout_marginLeft =" 20dp"
70+ android : layout_marginTop =" 10dp"
71+ android : layout_marginBottom =" 20dp"
72+ android : gravity =" center_horizontal"
73+ android : padding =" 5dp"
74+ android : text =" showAsDropDown(anchor)方法弹一个popupwindow"
75+ android : textColor =" #000000"
76+ android : textSize =" 13dp" />
77+
78+ <TextView
79+ android : id =" @+id/show_pupupwindow1"
80+ android : layout_width =" wrap_content"
81+ android : layout_height =" wrap_content"
82+ android : layout_gravity =" center_horizontal"
83+ android : layout_marginLeft =" 20dp"
84+ android : layout_marginTop =" 10dp"
85+ android : layout_marginBottom =" 20dp"
86+ android : gravity =" center_horizontal"
87+ android : padding =" 5dp"
88+ android : text =" showAsDropDown(anchor,xoff,yoff)方法弹一个popupwindow"
89+ android : textColor =" #000000"
90+ android : textSize =" 13dp" />
91+
92+ <TextView
93+ android : id =" @+id/show_pupupwindow2"
94+ android : layout_width =" wrap_content"
95+ android : layout_height =" wrap_content"
96+ android : layout_gravity =" center_horizontal"
97+ android : layout_marginLeft =" 20dp"
98+ android : layout_marginTop =" 10dp"
99+ android : layout_marginBottom =" 20dp"
100+ android : gravity =" center_horizontal"
101+ android : padding =" 5dp"
102+ android : text =" showAsDropDown(anchor,xoff,yoff,gravity)方法弹一个popupwindow"
103+ android : textColor =" #000000"
104+ android : textSize =" 13dp" />
105+
106+
107+ <TextView
108+ android : id =" @+id/show_pupupwindow3"
109+ android : layout_width =" wrap_content"
110+ android : layout_height =" wrap_content"
111+ android : layout_gravity =" center_horizontal"
112+ android : layout_marginLeft =" 20dp"
113+ android : layout_marginTop =" 10dp"
114+ android : layout_marginBottom =" 20dp"
115+ android : gravity =" center_horizontal"
116+ android : padding =" 5dp"
117+ android : text =" showAtLocation方法弹一个popupwindow"
118+ android : textColor =" #000000"
119+ android : textSize =" 13dp" />
120+
121+ <TextView
122+ android : id =" @+id/show_toast"
123+ android : layout_width =" wrap_content"
124+ android : layout_height =" wrap_content"
125+ android : layout_gravity =" center_horizontal"
126+ android : layout_marginTop =" 10dp"
127+ android : layout_marginBottom =" 20dp"
128+ android : gravity =" center_horizontal"
129+ android : padding =" 5dp"
130+ android : text =" 弹一个toast"
131+ android : textColor =" #000000"
132+ android : textSize =" 13dp" />
133+
134+ <ImageView
135+ android : id =" @+id/image"
136+ android : layout_width =" wrap_content"
137+ android : layout_height =" wrap_content"
138+ android : layout_gravity =" center_horizontal"
139+ android : layout_marginTop =" 10dp"
140+ android : layout_marginBottom =" 20dp"
141+ android : gravity =" center_horizontal"
142+ android : padding =" 5dp"
143+ />
144+ </LinearLayout >
145+
146+
126147 </LinearLayout >
127148
149+ <LinearLayout
150+ android : id =" @+id/line1"
151+ android : orientation =" vertical"
152+ android : layout_width =" match_parent"
153+ android : layout_height =" match_parent" />
128154
129- </LinearLayout >
155+ <LinearLayout
156+ android : id =" @+id/line3"
157+ android : orientation =" vertical"
158+ android : layout_width =" match_parent"
159+ android : layout_height =" match_parent" />
160+ </FrameLayout >
0 commit comments