diff --git a/README.md b/README.md index a2a09ba..2b35d28 100644 --- a/README.md +++ b/README.md @@ -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屏幕适配方案 @@ -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(':生成的模块名')`导入即可 ## 生成新的尺寸配置