Java 类android.widget.ThemedSpinnerAdapter 实例源码

项目:boohee_v5.6    文件:AppCompatSpinner.java   
public DropDownAdapter(@Nullable SpinnerAdapter adapter, @Nullable Theme dropDownTheme) {
    this.mAdapter = adapter;
    if (adapter instanceof ListAdapter) {
        this.mListAdapter = (ListAdapter) adapter;
    }
    if (dropDownTheme == null) {
        return;
    }
    if (AppCompatSpinner.IS_AT_LEAST_M && (adapter instanceof ThemedSpinnerAdapter)) {
        ThemedSpinnerAdapter themedAdapter = (ThemedSpinnerAdapter) adapter;
        if (themedAdapter.getDropDownViewTheme() != dropDownTheme) {
            themedAdapter.setDropDownViewTheme(dropDownTheme);
        }
    } else if (adapter instanceof ThemedSpinnerAdapter) {
        ThemedSpinnerAdapter themedAdapter2 = (ThemedSpinnerAdapter) adapter;
        if (themedAdapter2.getDropDownViewTheme() == null) {
            themedAdapter2.setDropDownViewTheme(dropDownTheme);
        }
    }
}
项目:solved-hacking-problem    文件:bi.java   
public bi(SpinnerAdapter spinnerAdapter, Theme theme) {
    this.f1367a = spinnerAdapter;
    if (spinnerAdapter instanceof ListAdapter) {
        this.f1368b = (ListAdapter) spinnerAdapter;
    }
    if (theme == null) {
        return;
    }
    if (bg.f1353a && (spinnerAdapter instanceof ThemedSpinnerAdapter)) {
        ThemedSpinnerAdapter themedSpinnerAdapter = (ThemedSpinnerAdapter) spinnerAdapter;
        if (themedSpinnerAdapter.getDropDownViewTheme() != theme) {
            themedSpinnerAdapter.setDropDownViewTheme(theme);
        }
    } else if (spinnerAdapter instanceof dd) {
        dd ddVar = (dd) spinnerAdapter;
        if (ddVar.m2705a() == null) {
            ddVar.m2706a(theme);
        }
    }
}
项目:solved-hacking-problem    文件:bi.java   
public bi(SpinnerAdapter spinnerAdapter, Theme theme) {
    this.f1367a = spinnerAdapter;
    if (spinnerAdapter instanceof ListAdapter) {
        this.f1368b = (ListAdapter) spinnerAdapter;
    }
    if (theme == null) {
        return;
    }
    if (bg.f1353a && (spinnerAdapter instanceof ThemedSpinnerAdapter)) {
        ThemedSpinnerAdapter themedSpinnerAdapter = (ThemedSpinnerAdapter) spinnerAdapter;
        if (themedSpinnerAdapter.getDropDownViewTheme() != theme) {
            themedSpinnerAdapter.setDropDownViewTheme(theme);
        }
    } else if (spinnerAdapter instanceof dd) {
        dd ddVar = (dd) spinnerAdapter;
        if (ddVar.m2705a() == null) {
            ddVar.m2706a(theme);
        }
    }
}
项目:FMTech    文件:AppCompatSpinner.java   
public DropDownAdapter(SpinnerAdapter paramSpinnerAdapter, Resources.Theme paramTheme)
{
  this.mAdapter = paramSpinnerAdapter;
  if ((paramSpinnerAdapter instanceof ListAdapter)) {
    this.mListAdapter = ((ListAdapter)paramSpinnerAdapter);
  }
  if ((paramTheme != null) && (AppCompatSpinner.IS_AT_LEAST_M) && ((paramSpinnerAdapter instanceof ThemedSpinnerAdapter)))
  {
    ThemedSpinnerAdapter localThemedSpinnerAdapter = (ThemedSpinnerAdapter)paramSpinnerAdapter;
    if (localThemedSpinnerAdapter.getDropDownViewTheme() != paramTheme) {
      localThemedSpinnerAdapter.setDropDownViewTheme(paramTheme);
    }
  }
}
项目:FMTech    文件:adm.java   
public adm(SpinnerAdapter paramSpinnerAdapter, Resources.Theme paramTheme)
{
  this.a = paramSpinnerAdapter;
  if ((paramSpinnerAdapter instanceof ListAdapter)) {
    this.b = ((ListAdapter)paramSpinnerAdapter);
  }
  if ((paramTheme != null) && (adk.a) && ((paramSpinnerAdapter instanceof ThemedSpinnerAdapter)))
  {
    ThemedSpinnerAdapter localThemedSpinnerAdapter = (ThemedSpinnerAdapter)paramSpinnerAdapter;
    if (localThemedSpinnerAdapter.getDropDownViewTheme() != paramTheme) {
      localThemedSpinnerAdapter.setDropDownViewTheme(paramTheme);
    }
  }
}