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);
}
}
}
java类android.widget.ThemedSpinnerAdapter的实例源码
AppCompatSpinner.java 文件源码
项目:boohee_v5.6
阅读 32
收藏 0
点赞 0
评论 0
bi.java 文件源码
项目:solved-hacking-problem
阅读 33
收藏 0
点赞 0
评论 0
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);
}
}
}
bi.java 文件源码
项目:solved-hacking-problem
阅读 27
收藏 0
点赞 0
评论 0
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);
}
}
}
AppCompatSpinner.java 文件源码
项目:FMTech
阅读 32
收藏 0
点赞 0
评论 0
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);
}
}
}
adm.java 文件源码
项目:FMTech
阅读 31
收藏 0
点赞 0
评论 0
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);
}
}
}