I'm trying to do an initial tutorial in my app like in this image:
Do you know the name of this feature? In order to find a tutorial for it.
I'm trying to do an initial tutorial in my app like in this image:
Do you know the name of this feature? In order to find a tutorial for it.
You need two things
You will be updating the indicator like this
mPager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {
@Override
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
}
@Override
public void onPageSelected(int position) {
// Update your custom view
}
@Override
public void onPageScrollStateChanged(int state) {
}
});
This can be implemented by using custom ViewPager
or ViewPager Adapter
you have to check if item is last available and bring user to the main application. Or you can use library. This library Android WizardPager by romannurik pretended to be what are you looking for.
If you are looking for only ViewPagerIndicator
there is another great library Android ViewPagerIndicator. There are a lot of examples provided there.
You can some examples of using indicators in sample application available for downloading in Maven Repository ViewPagerIndicator Maven Repo