How to handle the fast-scroller on Lollipop 5.1?

后端 未结 2 1334
梦谈多话
梦谈多话 2021-02-04 18:28

Background

I\'ve made a tiny library, which shows how to mimic the style of the stock contacts app of Android Lollipop, here.

The problem

It seems th

2条回答
  •  南方客
    南方客 (楼主)
    2021-02-04 18:59

    Why not set padding on the right side of your layout containing the ListView? Google webpage @ setPadding(). Personally I used android:paddingLeft for a similar issue like yours.

    Another common trick is to add a (hidden) ImageView in the layout on the right side (horizontal orientation). The ImageView would be hidden and the (width) size can be set.

    Glad to help a frequent SO user, hope I did. Regards, Tommy Kwee.

提交回复
热议问题