iPhone-like navigation dots for Android
I have to create an image gallery that navigation dots like the iPhone gallery.
Check out the screenshot. I need such a widget, look at the white dots:
Is there any widget available in Android that includes navigation dots? If not, how can I recreate this effect?
After Long days i found View Pager Navigation Dots from Github source
On my Arcos Tablet there is something like this used for the homescreen navigation - I am afraid it might be a custom widget though so you might have to write it yourself ...
If you know the name of the iPhone widget which does what you want (IF there is a particular name for it) - then google that in the following fashion: widgetName+for android - or something like this - I guess you're getting the idea :).
This link could be usefull : Android Scroll Pagination
Check out for : UipageControl (within UiScrollView). That's the name of the IPhone Class.
You can do that really easily using the GreenDroid library. Example: https://github.com/cyrilmottier/GreenDroid/blob/master/GDCatalog/src/com/cyrilmottier/android/gdcatalog/PagedViewActivity.java
Cheers
You will need to create a custom component that uses View.ViewPager, which is part of the android compatibility package. An example of this can be found here.
You can write your own one... or google about it :)
http://developer.android.com/resources/tutorials/views/hello-gallery.html
http://www.androidpeople.com/android-gallery-imageview-example
you may not find exactly what you look for but you can style the controls as you like ;)
精彩评论