Skip to content

Commit 166ea01

Browse files
committed
Update README.md
1 parent dc507ff commit 166ea01

File tree

3 files changed

+1
-24
lines changed

3 files changed

+1
-24
lines changed

art/1440x2560_height.png

-8.28 KB
Loading

art/1440x2880_height.png

-14.7 KB
Loading

demo/src/main/res/layout/activity_custom_adapt.xml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -53,36 +53,13 @@
5353
<!--把高度设置为 666 dp 的原因是想展示 AndroidAutoSize 可以把适配精度精确到 1 dp (667dp - 666dp = 1dp)
5454
如果您看得到屏幕下方高度为 1 dp 的白色间隙, 说明本适配方案, 能精确适配, 您可以放心填写 dp 值-->
5555
<TextView
56-
android:layout_width="200dp"
56+
android:layout_width="match_parent"
5757
android:layout_height="666dp"
5858
android:background="#0ff"
5959
android:gravity="center"
6060
android:text="H-666dp\n(total:667dp)"
6161
android:textColor="#fff"
6262
android:textSize="30sp"/>
6363

64-
<LinearLayout
65-
android:layout_width="match_parent"
66-
android:layout_height="wrap_content"
67-
android:orientation="vertical">
68-
69-
<TextView
70-
android:layout_width="match_parent"
71-
android:layout_height="400dp"
72-
android:background="#199"
73-
android:gravity="center"
74-
android:text="H-400dp"
75-
android:textColor="#fff"
76-
android:textSize="20sp"/>
77-
78-
<TextView
79-
android:layout_width="match_parent"
80-
android:layout_height="267dp"
81-
android:background="#911"
82-
android:gravity="center"
83-
android:text="H-267dp"
84-
android:textColor="#fff"
85-
android:textSize="20sp"/>
86-
</LinearLayout>
8764

8865
</LinearLayout>

0 commit comments

Comments
 (0)