在Android的水平滚动指标 [英] Indicators of horizontal scroll in Android

查看:118
本文介绍了在Android的水平滚动指标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要滚动到Android的水平滚动指标。
前人的精力指标是圆的(有时在手机进入默认的一些标准的应用程序)。
通常,这些是在该滚动元件的数量的社交圈。我们在哪里,这突出显示。

I need to make indicators of scrolling to horizontal scroll in Android. Indicators sould be round (Sometimes it goes by default in the phone with some standard application). Typically, these are circles on the number of elements that scroll. Where we are, that is highlighted.

请告诉我该怎么做,甚至什么来调用它。
谢谢你。

Please, tell me how to do it, or even what to call it. Thanks.

更新。

对不起,我不能张贴图片,但这里是一个<一个href=\"http://lh6.ggpht.com/_aW34Jqvch8X96mwf55-yJ-XTNFbPIaBMC_BpZRBnvccAoREFV-xyJRPtssHP1xdBPxCWWgq40Xx6SM\"相对=nofollow>例如的。它的gTask应用程序,它允许待办事项,列表之间滚动。

Sorry, I can't post an image, but here is an example. It's GTasks application, which allows to scroll between todo-lists.

推荐答案

其称为浏览量我想,有对于没有标准视图组件的机器人。只要创建,吸引圈到你的项目数量自定义视图;作出这样的扩展视图类,然后重写的onDraw()画出的圆圈。你可能需要一些变量保持项目的数量和当前显示的项目数量;那么你可以更新您的水平滚动。

Its called a 'pageview' i think, and there is no standard view component for that in android. Just create a custom view that draws circles to the amount of items you have; make a class that extends View, then override the onDraw() to draw the circles. You probably want some variables that keep the amount of items and the currently shown item number; you can then update that from your horizontal scroll.

这篇关于在Android的水平滚动指标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆