-
Notifications
You must be signed in to change notification settings - Fork 64
Different indicator shapes
Keval Patel edited this page Apr 15, 2018
·
3 revisions
- PasscodeView provides two different shapes of the indicators.
- Dot
- Circle ⭕️
-
- Prepare the indicator builder.
CircleIndicator.Builder builder = new DotIndicator.Builder(/* PIN view */) .setIndicatorRadius(/* Radius of the dot */) .setIndicatorFilledColor(/* Color while indicator is filled. */) .setIndicatorEmptyColor(/* Color while indicator is empty. */);
- Set the indicator to the
PinView
.
mPinView.setIndicator(builder);
Authentication Success | Authentication Fail |
---|---|
-
- Prepare the indicator builder.
CircleIndicator.Builder builder = new CircleIndicator.Builder(/* PIN view */) .setIndicatorRadius(/* Radius of the cicle */) .setIndicatorFilledColor(/* Color when indicator is filled. */) .setIndicatorStrokeColor(/* Color when indicator is empty. */) .setIndicatorStrokeWidth(/* Thickness of the ring. */);
- Set the indicator to the
PinView
.
mPinView.setIndicator(builder);
Authentication Success | Authentication Fail |
---|---|