iPhone-like navigation dots for Android

爱⌒轻易说出口 提交于 2019-12-03 04:34:39

问题


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?


回答1:


After Long days i found View Pager Navigation Dots from Github source




回答2:


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 :).




回答3:


This link could be usefull : Android Scroll Pagination

Check out for : UipageControl (within UiScrollView). That's the name of the IPhone Class.




回答4:


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




回答5:


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.




回答6:


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 ;)



来源:https://stackoverflow.com/questions/6014781/iphone-like-navigation-dots-for-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!