SectionIndexer を実装する SimpleAdapter の子である内部クラスを持つ ListActivity に取り組んでいます。
class MySimpleAdapter extends SimpleAdapter implements SectionIndexer {
    HashMap<String, Integer> letters;
    Object[] sections;
    AlphabetIndexer alphaIndexer;
    public MySimpleAdapter(Context context, List<? extends Map<String, ?>> data,
            int resource, String[] from, int[] to, 
            HashMap<String, Integer> letters, Object[] sections) {
        super(context, data, resource, from, to);
        this.letters = letters;
        this.sections = sections;
    }
    @SuppressWarnings("unchecked")
    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        if (convertView == null) {
            convertView = getLayoutInflater().inflate(R.layout.common_image_row1, null);
        }
        HashMap<String, Object> data = (HashMap<String, Object>) getItem(position);
        Integer idArtist = Integer.parseInt((String) data.get("idArtist"));
        convertView.setTag(idArtist);
        ((TextView) convertView.findViewById(R.id.item_name))
            .setText((String) data.get("sName"));
        ImageView image = (ImageView) convertView.findViewById(R.id.item_image);
        image.setTag((String) data.get("sImageUrl"));           
        image.setImageResource(R.drawable.default_artwork);
        ((TextView) convertView.findViewById(R.id.item_count))
            .setText((String) data.get("iSongs") + " Songs");
        if (!bScrolling) {
            new API.DownloadImagesTask().execute(image);
        }
        return convertView;
    }
    public int getPositionForSection(int section) {
        String letter = (String) sections[section];
        return letters.get(letter);
    }
    public int getSectionForPosition(int position) {
        return 0;
    }
    public Object[] getSections() {
        return sections;
    }
}
アクティビティは、別の AysncTask で JSON オブジェクトを受け取ります。このオブジェクトは、配列の項目の最初の文字をキーとするさまざまな JSONArray で構成されています。したがって、配列は文字「B」で始まる一連の項目で構成されています。したがって、その JSONArray のキーは「B」です。
{
    B: ["ball", "buck", "bill"]
    C: ["charlie", "chuck", "chap"]
}
オブジェクトは必ずしもアルファベットのすべての文字を持っているわけではありません。また、JSONObjects では順序が保証されていないことも認識しているため、並べ替えます。
    リスト> マップ = 新しい ArrayList>(); ArrayList セクション = 新しい ArrayList(); HashMap 文字 = 新しい HashMap();
        String[] alphabet = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N"
                ,"O","P","Q","R","S","T","U","V","W","X","Y","Z"};
        int k = 0;
        for (int i = 0; i < alphabet.length; i++) {
            if (playlistArtists.optJSONArray(alphabet[i]) != null) {
                try {
                    JSONArray artists = playlistArtists.getJSONArray(alphabet[i]);
                    sections.add(alphabet[i]);
                    for (int j = 0; j < artists.length(); j++) {
                        JSONObject artist = (JSONObject) artists.get(j);
                        HashMap<String, String> map= new HashMap<String, String>();
                        map.put("idArtist", artist.getString("idArtist"));
                        map.put("sName", artist.getString("sName"));
                        map.put("sImageUrl", artist.getString("sImageUrl-thumb"));
                        map.put("iSongs", artist.getString("iSongs"));
                        maps.add(map);
                        letters.put(alphabet[i], k);
                        k++;
                    }
                } catch (JSONException e) {
                    Log.d(TAG,"JSONException in Music::GetMusicCatlog.doInBackground");
                    e.printStackTrace();
                }
            }
        }
        SimpleAdapter adapter = new MySimpleAdapter(Catalog.this, 
                maps,
                R.layout.common_image_row1,
                new String[] {"idArtist","sName", "sImageUrl", "iSongs" },
                new int[] {R.id.item_id, R.id.item_name, R.id.item_image, R.id.item_count }, 
                letters, 
                sections.toArray());
        setListAdapter(adapter);
私が抱えている問題は、FastScroll にあります。ほとんどの場合、すべてが機能しています。リストは最初の文字でグループ化され、FastScroll を使用すると文字がポップアップに表示され、正しいグループに移動します。問題は、FastScroll がリストのランダムな部分に「ジャンプ」する目的のセクションに移動した後、FastScroll を手放したときです。離した場所に留まりません。SectionIndexer が正しく実装されていないため、セクション内の任意の場所に移動していると思います。問題はこの方法だと思います。
public int getSectionForPosition(int position) {
        return 0;
    }
SectionIndexer メソッドを適切に実装する方法がわかりません...