Skip to content

Commit

Permalink
修改 rect 对 round_size 不起作用的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzhengsr committed Feb 14, 2022
1 parent a80eee2 commit 4eb40f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion appx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'

implementation project(path: ':tablibx')
//implementation project(path: ':tablibx')
implementation 'com.github.LillteZheng:FlowHelper:v1.33'
implementation 'me.yokeyword:fragmentationx:1.0.2'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.viewpager2:viewpager2:1.0.0'
Expand All @@ -43,4 +44,5 @@ dependencies {
implementation 'org.ligboy.retrofit2:converter-fastjson-android:2.1.0'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static TabBean getTabBean(TypedArray ta){
bean.tabWidth = ta.getDimensionPixelSize(R.styleable.AbsFlowLayout_tab_width, -1);
bean.tabHeight = ta.getDimensionPixelSize(R.styleable.AbsFlowLayout_tab_height, -1);

bean.tabRoundSize = ta.getDimensionPixelSize(R.styleable.AbsFlowLayout_tab_round_size,10);
bean.tabRoundSize = ta.getDimensionPixelSize(R.styleable.AbsFlowLayout_tab_round_size,-1);

bean.tabMarginLeft = ta.getDimensionPixelSize(R.styleable.AbsFlowLayout_tab_margin_l, 0);
bean.tabMarginTop = ta.getDimensionPixelSize(R.styleable.AbsFlowLayout_tab_margin_t, 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ protected void valueChange(TabValue value) {

@Override
public void draw(Canvas canvas) {
canvas.drawRect(mTabRect, mPaint);
if (mTabBean.tabRoundSize != -1) {
canvas.drawRoundRect(mTabRect, mTabBean.tabRoundSize, mTabBean.tabRoundSize, mPaint);
} else {
Expand Down

0 comments on commit 4eb40f8

Please sign in to comment.