Build alternate dot animation like the one used in the default Android launcher:
The dot for the new page grows and changes color, while the dot for the previous page shrinks and fades to match other unselected dots.
This should probably be toggleable via a styleable enum attribute:
<com.itsronald.widget.ViewPagerIndicator
...
app:dotAnimation="scale|ink"/>
where scale describes the animation above and ink is the current (and default) style.
There should also be a matching Java API:
@IntDef({ANIMATION_STYLE_INK, ANIMATION_STYLE_SCALE})
public @interface AnimationStyle {}
@AnimationStyle
getAnimationStyle();
setAnimationStyle(@AnimationStyle animationStyle);
Build alternate dot animation like the one used in the default Android launcher:
The dot for the new page grows and changes color, while the dot for the previous page shrinks and fades to match other unselected dots.
This should probably be toggleable via a styleable enum attribute:
where
scaledescribes the animation above andinkis the current (and default) style.There should also be a matching Java API: