-
Notifications
You must be signed in to change notification settings - Fork 377
Configure Page Indicator
Alexander Vlasov edited this page Nov 16, 2016
·
2 revisions
Instances of IndicatorOptions
class hold settings for page indicator. To create a new instance of this class you should do this:
final IndicatorOptions indicatorOptions = IndicatorOptions.newBuilder(context)
.setElementSize(...)
.setElementSizeRes(...)
.setElementSpacing()
.setElementSpacingRes(...)
.setElementColor()
.setElementColorRes(...)
.setSelectedElementColor()
.setSelectedElementColorRes(...)
.setRenderer(...)
.build();
Method | Description |
---|---|
setElementSize(Res) |
Set the size of non-selected element. |
setElementSpacing(Res) |
Set the size of spacing between elements. |
setElementColor(Res) |
Set the color of non-selected element. |
setSelectedElementColor(Res) |
Set the color of selected element. |
setRenderer |
Set a custom renderer for indicator. There are two implementations of Renderer interface that available out of the box: If you want to create your own Renderer look at this custom implementations in the sample app: |
All methods are optional.