当不滚动在ListView自动隐藏滚动条 [英] Autohide scrollbars when not scrolling in a ListView

查看:206
本文介绍了当不滚动在ListView自动隐藏滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在新的官方Twitter的应用程序,在所有的应用程序使用隐藏除非用户通过滚动列表中的列表视图滚动条。

In the new official Twitter app, the scrollbars in all the ListViews the app uses are hidden unless the user is scrolling through the list.

当你开始滚动,滚动条出现。当你停下来,他们淡出与动画,直到他们被完全消失了。

When you start scrolling, the scrollbars appear. When you stop, they fade out with an animation until they are gone completely.

我似乎无法找到,指示此作为一个标准功能的文档中任何事情。

I can't seem to find anything in the documentation that indicates this as being a standard feature.

这是不是包含在API中?如果没有,任何人都知道这可能是做了什么?

Is this something included in the API? If not, anyone know how this might be done?

推荐答案

确认:无论是采用Android:fadeScrollbars(如果你是API级别5) 或尝试使用setOnScrollListener检查滚动状态和隐藏/显示吧。有些code的例子是在这个线程: <一href="http://stackoverflow.com/questions/1768391/how-to-detect-android-listview-scrolling-stopped">http://stackoverflow.com/questions/1768391/how-to-detect-android-listview-scrolling-stopped

Confirmed : either use android:fadeScrollbars ( if you're API level 5 ) or try to use setOnScrollListener to check scroll status and hide/show the bars . Some code examples are in this thread: http://stackoverflow.com/questions/1768391/how-to-detect-android-listview-scrolling-stopped

这篇关于当不滚动在ListView自动隐藏滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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