Skip to content

Commit 45d9174

Browse files
committed
vault backup: 2024-12-26 21:35:43
1 parent 2ac56a9 commit 45d9174

File tree

2 files changed

+103
-0
lines changed

2 files changed

+103
-0
lines changed

README.md

+103
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,110 @@ git clone --recurse-submodules https://github.com/KomeijiReimu/Android.git
1919
还包括一个进度条(默认圆形加载条)
2020
![[06cba22135487796f18c9cce760d28f5.jpg|1175]]
2121

22+
```xml
23+
<?xml version="1.0" encoding="utf-8"?>
24+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
25+
android:id="@+id/mainLayout"
26+
android:layout_width="match_parent"
27+
android:layout_height="match_parent"
28+
android:orientation="vertical">
29+
30+
<RelativeLayout
31+
android:layout_width="match_parent"
32+
android:layout_height="wrap_content">
33+
34+
<TextView
35+
android:id="@+id/txtx"
36+
android:layout_width="wrap_content"
37+
android:layout_height="wrap_content"
38+
android:layout_alignParentStart="true"
39+
android:gravity="center"
40+
android:layout_centerVertical="true"
41+
android:textSize="30sp"
42+
android:text="京海市" />
43+
44+
<Button
45+
android:layout_width="wrap_content"
46+
android:layout_height="wrap_content"
47+
android:text="消息"
48+
android:layout_toRightOf="@id/txtx"
49+
android:layout_marginLeft="20dp" />
50+
51+
<Button
52+
android:layout_width="wrap_content"
53+
android:layout_height="wrap_content"
54+
android:layout_alignParentEnd="true"
55+
android:text="扫一扫" />
56+
57+
</RelativeLayout>
58+
59+
<GridLayout
60+
android:layout_width="match_parent"
61+
android:layout_height="wrap_content"
62+
android:columnCount="3"
63+
android:rowCount="3"
64+
android:layout_marginTop="30dp"
65+
android:orientation="horizontal">
66+
67+
<Button
68+
android:layout_width="wrap_content"
69+
android:layout_height="80dp"
70+
android:layout_columnWeight="1"
71+
android:text="按钮" />
72+
73+
<Button
74+
android:layout_width="wrap_content"
75+
android:layout_height="80dp"
76+
android:layout_columnWeight="1"
77+
android:text="按钮" />
78+
79+
<Button
80+
android:layout_width="wrap_content"
81+
android:layout_height="80dp"
82+
android:layout_columnWeight="1"
83+
android:text="按钮" />
84+
85+
<Button
86+
android:layout_width="wrap_content"
87+
android:layout_height="80dp"
88+
android:layout_columnWeight="1"
89+
android:text="按钮" />
90+
91+
<Button
92+
android:layout_width="wrap_content"
93+
android:layout_height="80dp"
94+
android:layout_columnWeight="1"
95+
android:text="按钮" />
96+
97+
<Button
98+
android:layout_width="wrap_content"
99+
android:layout_height="80dp"
100+
android:layout_columnWeight="1"
101+
android:text="按钮" />
102+
103+
<Button
104+
android:layout_width="wrap_content"
105+
android:layout_height="80dp"
106+
android:layout_columnWeight="1"
107+
android:text="按钮" />
108+
109+
<Button
110+
android:layout_width="wrap_content"
111+
android:layout_height="80dp"
112+
android:layout_columnWeight="1"
113+
android:text="按钮" />
114+
115+
<Button
116+
android:layout_width="wrap_content"
117+
android:layout_height="80dp"
118+
android:layout_columnWeight="1"
119+
android:text="按钮" />
120+
</GridLayout>
121+
</LinearLayout>
22122

123+
```
124+
125+
![[Pasted image 20241226211222.png|475]]
23126

24127

25128
**网络编程**(文档中有)
66.1 KB
Loading

0 commit comments

Comments
 (0)