Skip to content

Commit a33f204

Browse files
author
RudiLi
committed
feat:
1 parent fc061e9 commit a33f204

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: banner/src/main/java/com/example/banner/AutoBanner.kt

+2
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,9 @@ class AutoBanner : FrameLayout, ViewPager.OnPageChangeListener {
333333
}
334334
mLayoutPara.topMargin = indicatorTop;
335335
mLayoutPara.bottomMargin = indicatorBottom;
336+
mLayoutPara.gravity = Gravity.CENTER_VERTICAL
336337
mIvIndicator.layoutParams = mLayoutPara;
338+
337339
if (i == 0) {
338340
mIvIndicator.setImageResource(indicatorSelect)
339341
} else {

0 commit comments

Comments
 (0)