Reputation: 1085
I want to implement image slider in android similar to this . But I need to do this without any third party dependencies . Is there any sample for implementing the same using View pager , or anything else. I need the exact slider style , with dot indicator
Upvotes: 3
Views: 14695
Reputation: 2141
Follow the steps below to implement the same.
Step1: create two circle images, one for on and other for off.
Step2: Create three blank fragments for displaying the image. you can create as many as you want.
Step3: Create a footer.xml to place the circle indicator.
Step4: Create a fragment_main.xml to place the viewpager.
Step5: Create an adapter class.
Please check this http://javaant.com/viewpager-with-circle-indicator-in-android/#.Vx3_gJN96Ht to download the complete code
Upvotes: 1