Skip to content

Commit

Permalink
修改截图
Browse files Browse the repository at this point in the history
  • Loading branch information
hongyangAndroid committed Nov 22, 2015
1 parent e7afd2c commit 509c05b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Android屏幕适配方案,直接填写设计图上的像素尺寸即可完成

so,看下用法:

<img src="autolayout_01.png"/>
<img src="autolayout_08.png"/>


<img src="autolayout_02.png"/>
<img src="autolayout_09.png"/>

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

Expand Down
Binary file added autolayout_08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autolayout_09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 1 addition & 5 deletions sample/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
android:layout_marginTop="26px"
android:background="#ffffffff"
>

<ImageView
android:id="@+id/id_tv_add"
android:layout_width="34px"
Expand All @@ -24,7 +23,6 @@
android:layout_marginTop="26px"
android:src="@mipmap/add"
/>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand All @@ -42,9 +40,7 @@
android:layout_width="match_parent"
android:layout_height="108px"
android:layout_marginTop="26px"
android:background="#ffffffff"
>

android:background="#ffffffff">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down

0 comments on commit 509c05b

Please sign in to comment.