Display List item with Labels and index in Android
Hello Guys !! Hope you are doing well... In this tutorials, you will learn how to display list with labels and with index. In my previous post, I've explain about how to get Phone contact and display in listview in your android application. Now I'm using the same concept here also. Get contacts from the phone and then display in Listview with labels and indexs. Here are all the necessary java and xml files. 1. LabelListActivity.java package com.pack.listlabel; import java.util.ArrayList; import android.annotation.SuppressLint; import android.app.Activity; import android.app.ProgressDialog; import android.database.Cursor; import android.graphics.Color; import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; import android.provider.ContactsContract; import android.view.Gravity; import android.view.MotionEvent; import android.view.View; import android.view.View.OnTouchListener; import android.view.Window; import android.widg