FileDocCategorySizeDatePackage
MusicAlphabetIndexer.javaAPI DocAndroid 1.5 API1476Wed May 06 22:42:46 BST 2009com.android.music

MusicAlphabetIndexer

public class MusicAlphabetIndexer extends android.widget.AlphabetIndexer
Handles comparisons in a different way because the Album, Song and Artist name are stripped of some prefixes such as "a", "an", "the" and some symbols.

Fields Summary
Constructors Summary
public MusicAlphabetIndexer(android.database.Cursor cursor, int sortedColumnIndex, CharSequence alphabet)

        super(cursor, sortedColumnIndex, alphabet);
    
Methods Summary
protected intcompare(java.lang.String word, java.lang.String letter)

        String wordKey = MediaStore.Audio.keyFor(word);
        String letterKey = MediaStore.Audio.keyFor(letter);
        if (wordKey.startsWith(letter)) {
            return 0;
        } else {
            return wordKey.compareTo(letterKey);
        }