/** * Constructor. The adapter will call requery() on the cursor whenever * it changes so that the most recent data is always displayed. * * @param c The cursor from which to get the data. * @param context The context */ public void __constructor__(Context context, Cursor c) { initialize(context, c, true); }
@Override public void onChanged() { mDataValid = true; notifyDataSetChanged(); }
@Override public void onInvalidated() { mDataValid = false; notifyDataSetInvalidated(); } }
mDataValid = true; notifyDataSetChanged(); } else { mRowIDColumn = -1; mDataValid = false; notifyDataSetInvalidated();
/** * Constructor. * * @param context The context where the ListView associated with this * SimpleListItemFactory is running * @param layout resource identifier of a layout file that defines the views * for this list item. Unless you override them later, this will * define both the item views and the drop down views. */ public void __constructor__(Context context, int layout, Cursor c) { super.__constructor__(context, c); mLayout = mDropDownLayout = layout; mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); }
@Override public void onChange(boolean selfChange) { onContentChangedInternal(); } }
/** * Constructor. * * @param context The context where the ListView associated with this * SimpleListItemFactory is running * @param layout resource identifier of a layout file that defines the views * for this list item. Unless you override them later, this will * define both the item views and the drop down views. * @param c The cursor from which to get the data. * @param autoRequery If true the adapter will call requery() on the * cursor whenever it changes so the most recent * data is always displayed. */ public void __constructor__(Context context, int layout, Cursor c, boolean autoRequery) { super.__constructor__(context, c, autoRequery); mLayout = mDropDownLayout = layout; mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); }
/** * Constructor * * @param c The cursor from which to get the data. * @param context The context * @param autoRequery If true the adapter will call requery() on the * cursor whenever it changes so the most recent * data is always displayed. */ public void __constructor__(Context context, Cursor c, boolean autoRequery) { initialize(context, c, autoRequery); }