Skip to content

Commit

Permalink
一点点优化
Browse files Browse the repository at this point in the history
  • Loading branch information
li504799868 committed Jan 8, 2020
1 parent 1db3af5 commit 21b1d93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion FlycoTabLayout_Lib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.library'
apply plugin: 'com.novoda.bintray-release'

version = "1.1.0"
version = "1.1.1"
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ private void setTabLayoutParams(TextView title) {

/**
* 如果文字的大小没有变化,不需要开启镜像,请注意
* */
*/
private boolean isDmgOpen() {
return openDmg && mTextSelectSize != mTextUnSelectSize;
}
Expand Down Expand Up @@ -506,11 +506,10 @@ else if (mTextBold == TEXT_BOLD_WHEN_SELECT && i == position) {
} else {
tab_title.getPaint().setFakeBoldText(false);
}
}

if (isDmgOpen()) {
tab_title.setVisibility(View.VISIBLE);
generateTitleDmg(tabView, tab_title);
if (isDmgOpen() && (mTextSelectColor != mTextUnSelectColor || mTextBold == TEXT_BOLD_WHEN_SELECT)) {
tab_title.setVisibility(View.VISIBLE);
generateTitleDmg(tabView, tab_title);
}
}
}
}
Expand Down

0 comments on commit 21b1d93

Please sign in to comment.