Code example for SparseIntArray

0
import android.widget.TextView; 
 
public class StreamListAdapter extends ArrayAdapter<Object> {
 
	protected String TAG = "StreamListAdapter";
	public SparseIntArray expanded = new SparseIntArray();
	private HashMap<String,Boolean> admin;
	 
	public StreamListAdapter(Activity activity, Object[] rss) {
		super(activity, 0, rss);
		 
	} 
 
 
	@SuppressLint("NewApi") 
	@Override 
	public View getView(final int position, View convertView, ViewGroup parent) {
 
		final Activity activity = (Activity) getContext();
		LayoutInflater inflater = activity.getLayoutInflater();