Android Open Source - Android-IndexListview Index Listview Application






From Project

Back to project page Android-IndexListview.

License

The source code is released under:

Apache License

If you think the Android project Android-IndexListview listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.cw.indexlistview;
/*w ww .ja v a 2s .c o  m*/
import android.app.Application;
import android.content.Context;

public class IndexListviewApplication extends Application {

    public static IndexListviewApplication instance = null;
    public static Context mContext;
    
    public IndexListviewApplication() {
        mContext = this;
    }

    public static Context getContext()
    {
        if (null == mContext) {
            new IndexListviewApplication();
        }
        return mContext;
    }

    public static IndexListviewApplication getInstance()
    {
        if (instance == null) {
            instance = new IndexListviewApplication();
        }
        return instance;
    }

}




Java Source Code List

com.cw.indexlistview.IndexListviewApplication.java
com.cw.indexlistview.SimpleActivity.java
com.cw.indexlistview.model.CityListCityModel.java
com.cw.indexlistview.utils.FileUtils.java
com.cw.indexlistview.widget.SectionListAdapter.java
com.cw.indexlistview.widget.SectionListView.java