Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
licheedev committed Nov 5, 2022
1 parent d11c162 commit b5dfcf2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CommonSize [![](https://jitpack.io/v/licheedev/SmallestWidthDimens.svg)](https://jitpack.io/#licheedev/SmallestWidthDimens)
# SmallestWidthDimens [![](https://jitpack.io/v/licheedev/SmallestWidthDimens.svg)](https://jitpack.io/#licheedev/SmallestWidthDimens)

Android SmallestWidth屏幕适配方案

Expand Down Expand Up @@ -43,6 +43,17 @@ dependencies {
}
```

3. 使用

```
// 正数dp
android:layout_width="@dimen/sw_16dp"
// 负数dp
android:layout_width="@dimen/_sw_10dp"
// sp
android:textSize="@dimen/sw_36sp"
```

没有合适的话,就按照下面配置重新生成一个module,复制到自己项目里面,然后 `compile project(':生成的模块名')`导入即可

## 生成新的尺寸配置
Expand Down

0 comments on commit b5dfcf2

Please sign in to comment.