From b5dfcf21d40afd529d110822f438cf3f8bac964a Mon Sep 17 00:00:00 2001 From: licheedev Date: Sat, 5 Nov 2022 16:49:02 +0800 Subject: [PATCH] update README.md --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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(':生成的模块名')`导入即可 ## 生成新的尺寸配置