开发者

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:

iPhone-like navigation dots for Android

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

iPhone-like navigation dots for Android

iPhone-like navigation dots for Android


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜