i would create a slider like this: THIS
I haven't trouble to create an activity that does this things, my problem is that i can't create the animation for the images(The littel circle) that are on the bottom. I have tested this, but it is to slow:
@Override
public Fragment getItem(int position) {
ScreenSlidePageFragment fragment = new ScreenSlidePageFragment();
Bundle args = new Bundle();
args.putInt("key", position);
fragment.setArguments(args);
switch (position){
case 0:
findViewById(R.id.btnFirstSlide).setVisibility(View.VISIBLE);
findViewById(R.id.btnSecondSlide).setVisibility(View.INVISIBLE);
findViewById(R.id.btnThirdSlide).setVisibility(View.INVISIBLE);
break;
case 1:
findViewById(R.id.btnFirstSlide).setVisibility(View.INVISIBLE);
findViewById(R.id.btnSecondSlide).setVisibility(View.VISIBLE);
findViewById(R.id.btnThirdSlide).setVisibility(View.INVISIBLE);
break;
case 2:
findViewById(R.id.btnFirstSlide).setVisibility(View.INVISIBLE);
findViewById(R.id.btnSecondSlide).setVisibility(View.INVISIBLE);
findViewById(R.id.btnThirdSlide).setVisibility(View.VISIBLE);
break;
}
return fragment;
}
What can be a nice solution?