Skip to content

Commit 509c05b

Browse files
author
hongyangAndroid
committed
修改截图
1 parent e7afd2c commit 509c05b

4 files changed

Lines changed: 3 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ Android屏幕适配方案,直接填写设计图上的像素尺寸即可完成
99

1010
so,看下用法:
1111

12-
<img src="autolayout_01.png"/>
12+
<img src="autolayout_08.png"/>
1313

1414

15-
<img src="autolayout_02.png"/>
15+
<img src="autolayout_09.png"/>
1616

1717
你没有看错,拿到设计稿,在布局文件里面直接填写对应的px即可,px:这里的px并非是Google不建议使用的px,在内部会进行转化处理。
1818

autolayout_08.png

521 KB
Loading

autolayout_09.png

457 KB
Loading

sample/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
android:layout_marginTop="26px"
1515
android:background="#ffffffff"
1616
>
17-
1817
<ImageView
1918
android:id="@+id/id_tv_add"
2019
android:layout_width="34px"
@@ -24,7 +23,6 @@
2423
android:layout_marginTop="26px"
2524
android:src="@mipmap/add"
2625
/>
27-
2826
<TextView
2927
android:layout_width="wrap_content"
3028
android:layout_height="wrap_content"
@@ -42,9 +40,7 @@
4240
android:layout_width="match_parent"
4341
android:layout_height="108px"
4442
android:layout_marginTop="26px"
45-
android:background="#ffffffff"
46-
>
47-
43+
android:background="#ffffffff">
4844
<TextView
4945
android:layout_width="wrap_content"
5046
android:layout_height="wrap_content"

0 commit comments

Comments
 (0)