File tree Expand file tree Collapse file tree
sample/src/main/res/layout Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ Android屏幕适配方案,直接填写设计图上的像素尺寸即可完成
99
1010so,看下用法:
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
Original file line number Diff line number Diff line change 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"
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"
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"
You can’t perform that action at this time.
0 commit comments