Autohide scrollbars when not scrolling in a ListView

前端 未结 4 470
广开言路
广开言路 2021-01-12 09:01

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 scrollin

4条回答
  •  清歌不尽
    2021-01-12 09:15

    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: how to detect Android ListView Scrolling stopped?

提交回复
热议问题