package androidx.cursoradapter.widget; import android.content.Context; import android.database.Cursor; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; public abstract class ResourceCursorAdapter extends CursorAdapter { private int mDropDownLayout; private LayoutInflater mInflater; private int mLayout; @Deprecated public ResourceCursorAdapter(Context context, int i, Cursor cursor) { super(context, cursor); this.mDropDownLayout = i; this.mLayout = i; this.mInflater = (LayoutInflater) context.getSystemService("layout_inflater"); } public ResourceCursorAdapter(Context context, int i, Cursor cursor, int i2) { super(context, cursor, i2); this.mDropDownLayout = i; this.mLayout = i; this.mInflater = (LayoutInflater) context.getSystemService("layout_inflater"); } @Deprecated public ResourceCursorAdapter(Context context, int i, Cursor cursor, boolean z2) { super(context, cursor, z2); this.mDropDownLayout = i; this.mLayout = i; this.mInflater = (LayoutInflater) context.getSystemService("layout_inflater"); } @Override // androidx.cursoradapter.widget.CursorAdapter public View newDropDownView(Context context, Cursor cursor, ViewGroup viewGroup) { return this.mInflater.inflate(this.mDropDownLayout, viewGroup, false); } @Override // androidx.cursoradapter.widget.CursorAdapter public View newView(Context context, Cursor cursor, ViewGroup viewGroup) { return this.mInflater.inflate(this.mLayout, viewGroup, false); } public void setDropDownViewResource(int i) { this.mDropDownLayout = i; } public void setViewResource(int i) { this.mLayout = i; } }