0

I'd like to make an informative welcome screen with 3-4 images- giving to user for the first time some info about app utility, I'll have skip and next buttons too. So, how can I implement those 3 dots to be responsible with my screens???

johny
  • 187
  • 1
  • 1
  • 11

3 Answers3

0

There are many possibilities. If you don't want to use ViewPager, you can use LinearLayout with 3 ImageView. You can create two oval shapes using drawable resources and replace them according to displayed screen. Those "dots" can have listeners used to navigation.

Artur Szymański
  • 1,639
  • 1
  • 19
  • 22
0

1.you need to use ViewPageIndicator Library click here to download the library.

2.Then Go to Android Studio File>New>New Module - to import the Library into your project.

3.Then add dependency in gradle compile project(path:':viewpagelibrary')

4.set Adapter

public CirclePageIndicator mCirclePageIndicator;
public ViewPager mViewPager;
void initiateViewPager(){
           mViewPager = (ViewPager)findViewById(R.id.view_pager);
           mCirclePageIndicator = (CirclePageIndicator)findViewById(R.id.indicator);
           mViewPager.setAdapter(mViewPageAdapter);
           mCirclePageIndicator.setViewPager(mViewPager);
}

thats all hope it helps someone

Community
  • 1
  • 1
-2

You probably want to use ViewPager. Check out this tutorial https://medium.com/android-news/creating-an-intro-screen-for-your-app-using-viewpager-pagetransformer-9950517ea04f#.wt85fxrf5 or this sample https://github.com/lalongooo/viewpager-sample

Nick Hargreaves
  • 436
  • 2
  • 7
  • good example, but I was using something [similar](http://www.androidsources.com/index.php/2015/08/06/android-splash-screen-and-welcome-screen-tutorial-using-android-studio/) - simplified a bit – johny Nov 02 '15 at 10:16
  • 1
    Please quote the essential parts of the answer from the reference link(s), as the answer can become invalid if the linked page(s) change. – DavidPostill Nov 25 '15 at 20:35