在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.

更新。

对不起,我不能张贴图片,但这里是一个例如的。它的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.