content: 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 layout, Cursor c) {
          super(context, c);
          this.mDropDownLayout = layout;
          this.mLayout = layout;
          this.mInflater = (LayoutInflater) context.getSystemService("layout_inflater");
      }
  
      public ResourceCursorAdapter(Context context, int layout, Cursor c, int flags) {
          super(context, c, flags);
          this.mDropDownLayout = layout;
          this.mLayout = layout;
          this.mInflater = (LayoutInflater) context.getSystemService("layout_inflater");
      }
  
      @Deprecated
      public ResourceCursorAdapter(Context context, int layout, Cursor c, boolean autoRequery) {
          super(context, c, autoRequery);
          this.mDropDownLayout = layout;
          this.mLayout = layout;
          this.mInflater = (LayoutInflater) context.getSystemService("layout_inflater");
      }
  
      public View newDropDownView(Context context, Cursor cursor, ViewGroup parent) {
          return this.mInflater.inflate(this.mDropDownLayout, parent, false);
      }
  
      public View newView(Context context, Cursor cursor, ViewGroup parent) {
          return this.mInflater.inflate(this.mLayout, parent, false);
      }
  
      public void setDropDownViewResource(int dropDownLayout) {
          this.mDropDownLayout = dropDownLayout;
      }
  
      public void setViewResource(int layout) {
          this.mLayout = layout;
      }
  }
  