Android 为什么快速滚动条没有在棒棒糖中显示

Android 为什么快速滚动条没有在棒棒糖中显示,android,listview,android-5.0-lollipop,fastscroll,Android,Listview,Android 5.0 Lollipop,Fastscroll,因此,我有一个列表视图,我正在尝试向其中添加快速滚动条,如下所示: <ListView android:id="@+id/my_list" android:layout_width="match_parent" android:layout_height="match_parent" android:fastScrollAlwaysVisible="true" android:fastScrollEnabled="true" /> 这在A

因此,我有一个
列表视图
,我正在尝试向其中添加快速滚动条,如下所示:

<ListView
    android:id="@+id/my_list"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fastScrollAlwaysVisible="true"
    android:fastScrollEnabled="true" />

这在API19上运行良好,但在API21或22上,它根本不会出现在模拟器和设备上


有人能告诉我为什么吗?

您的适配器实现了吗


奇怪,这对我来说很好。可能是一些样式问题?检查此链接创建了一个示例项目来测试它,它工作正常。。。。因此,一定有其他因素影响着它——尽管如此,还是要感谢你的帮助!
package android.widget;

public interface SectionIndexer {
    Object[] getSections();

    int getPositionForSection(int var1);

    int getSectionForPosition(int var1);
}