Vp2IndicatorView
Vp2IndicatorView.
<com.ave.vastgui.tools.view.vp2indicatorview.Vp2IndicatorView
android:id="@+id/vp2indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="20dp"
app:indicator_item_count="3"
Since
0.2.0
Constructors
Properties
The bitmap when indicator is selected.
The height of mBitmapSelected and mBitmapUnSelected.
The width of mBitmapSelected and mBitmapUnSelected.
The bitmap when indicator is unselected.
Indicator selected color.
Indicator unselected color.
The current position of the indicator.
The radius of the indicator circle in pixels.
The count of the indicator item.
The indicator item distance in pixels.
The height of the indicator view.
The width of the indicator view.
Indicator style. By default the value is CIRCLE.
The ViewPager2 that the Vp2IndicatorView will attach to.
Functions
Set the ViewPager2 that the Vp2IndicatorView will attach to.
Set the size of mBitmapSelected and mBitmapUnSelected.
Set current selected indicator item position.
Set indicator circle radius.
Set indicator item count.
Set the distance of the indicator item.
Set indicator style.
Set selected bitmap, now supports BitmapDrawable , VectorDrawable , VectorDrawableCompat
Set indicator selected color.
Set Unselected bitmap, now supports BitmapDrawable , VectorDrawable , VectorDrawableCompat
Set indicator unselected color.
Verifies that the indicator item count.