Skip to content

Commit

Permalink
更新README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
liujingxing10000 committed May 12, 2019
1 parent 4e63e68 commit 4261bc9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ implementation 'com.ljx.view:fontresize:1.0.1'
app:standardGrade="2"
app:totalGrade="7" />
```

### 设置回调
```java
FontResizeView fontResizeView = findViewById(R.id.font_resize_view);
fontResizeView.setOnFontChangeListener(new OnFontChangeListener() {
@Override
public void onFontChange(float fontSize) {
//字体size改变回调 单位:sp
}
});
```

这样配置过后,代码跑起来效果就跟上面的 gif 动图一样

我们把所有属性都加上,看看效果
Expand Down

0 comments on commit 4261bc9

Please sign in to comment.