Android的 - 列表视图fastscroll与字母就像iPhone的联系人活动 [英] android - listview fastscroll with alphabet like on iPhone contacts activity

查看:143
本文介绍了Android的 - 列表视图fastscroll与字母就像iPhone的联系人活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想实现一个iPhone一样以字母滚动fastscroll。在这里看到:的http://appsreviews.com/wp-content/uploads/2010/08/Cures-A-Z-App-for-iPhone.jpg

Hi I am simply trying to implement an iPhone like fastscroll with an alphabetic scrollbar. See here: http://appsreviews.com/wp-content/uploads/2010/08/Cures-A-Z-App-for-iPhone.jpg

令人惊讶的我找不到这样的Andr​​oid的东西。

Surprisingly I cannot find anything like that for android.

鸭preciate任何帮助。

Appreciate any help.

<ListView 
    android:id="@+id/lstItems" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content"
    android:orientation="vertical"
    android:layout_below="@id/seekbarvalue" 
    android:scrollbarThumbVertical="@drawable/scrollbar_vertical_thumb" 
    android:scrollbarTrackVertical="@drawable/scrollbar_vertical_track"
    android:scrollbarSize="30dp"
    android:scrollbarStyle="insideOverlay"
    android:fadeScrollbars="false" />

有人评论其他线程的话题:如果你正在为Android开发,所有的应用程序部件应该做类似的事情无需从iPhone复制。但是,试图解释给你的客户,谁想要的应用程序看起来大部分手机一样的。

Somebody commented on the subject in other threads: "if you are developing for android, all your apps app widgets should do similar things. No need to copy from iPhone." However, try to explain it to your client, who wants the app to look the same on most phones.

下面是现在的样子。UGLY

Here is how it looks now: UGLY.

推荐答案

尝试加入的android:fastScrollEnabled 在XML布局你的ListView,这应该让你pretty接近你所需要的。

try adding android:fastScrollEnabled to your ListView in the XML layout, that should get you pretty close to what you need.

这篇关于Android的 - 列表视图fastscroll与字母就像iPhone的联系人活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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