Skip to content

Commit

Permalink
rename UIReviewSetting method isDevelop to isReviewMod and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
maoruibin committed Nov 7, 2016
1 parent 7ce9892 commit 07b5e0c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
17 changes: 17 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,23 @@ Edit your layout XML:
android:textSize="15sp"/>
~~~

## Step 4

Setting options

```java
// set current is review mod or not
UIReviewSetting.getInstance().isReviewMod(true);
// set is show border or not
UIReviewSetting.getInstance().isShowBorder(true);
// set is show text color or not
UIReviewSetting.getInstance().isShowTextColor(true);
// set is show text size by dp or not
UIReviewSetting.getInstance().isShowTextSizeDp(true);
// set is show text size by sp or not
UIReviewSetting.getInstance().isShowTextSizeSp(true);
```

## Author

[Github](https://github.com/maoruibin)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public UIDisplayFrameAndInfoImpl(IReviewView mDevelopView) {

@Override
public boolean isReviewMod() {
return mSetting.isDevelop();
return mSetting.isReviewMod();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ private static class SingletonHolder{
private static UIReviewSetting settingCenter = new UIReviewSetting();
}

public void isDevelop(boolean flag){
public void isReviewMod(boolean flag){
isReviewMod = flag;
}

public boolean isDevelop(){
public boolean isReviewMod(){
return isReviewMod;
}

Expand Down

0 comments on commit 07b5e0c

Please sign in to comment.