适用于 Android 的类似 iPhone 的导航点
我必须创建一个像 iPhone 图库一样带有导航点的图片库。
查看屏幕截图。我需要这样一个小部件,看看白点:
有没有小部件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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
经过漫长的天后,我发现 从 Github 源查看寻呼机导航点
After Long days i found View Pager Navigation Dots from Github source
在我的 Arcos 平板电脑上,有一个类似的东西用于主屏幕导航 - 恐怕它可能是一个自定义小部件,所以你可能必须自己编写它......
如果你知道 iPhone 小部件的名称,它可以完成你想要的功能(如果它有一个特定的名称) - 然后按照以下方式谷歌搜索:widgetName+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 :).
此链接可能有用:Android 滚动分页
查看:UipageControl(在 UiScrollView 内)。这就是 iPhone 类的名称。
This link could be usefull : Android Scroll Pagination
Check out for : UipageControl (within UiScrollView). That's the name of the IPhone Class.
您可以使用 GreenDroid 库轻松地做到这一点。例子:
https://github.com /cyrilmottier/GreenDroid/blob/master/GDCatalog/src/com/cyrilmottier/android/gdcatalog/PagedViewActivity.java
干杯
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
您将需要创建一个使用 View.ViewPager 的自定义组件,它是 android 兼容性的一部分包。可以在此处找到相关示例。
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.
您可以编写自己的...或谷歌搜索它:)
http: //developer.android.com/resources/tutorials/views/hello-gallery.html
http://www.androidpeople.com/android-gallery-imageview-example
您可能找不到您想要的东西,但您可以根据自己的喜好设置控件的样式;)
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 ;)