本文整理汇总了Java中android.widget.Spinner.MODE_DROPDOWN属性的典型用法代码示例。如果您正苦于以下问题:Java Spinner.MODE_DROPDOWN属性的具体用法?Java Spinner.MODE_DROPDOWN怎么用?Java Spinner.MODE_DROPDOWN使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类android.widget.Spinner
的用法示例。
在下文中一共展示了Spinner.MODE_DROPDOWN属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SpinnerSetting
private SpinnerSetting(Class<CLASS> clazz, SettData settData, SettingsText title, IIcon icon, ISettingsSpinnerEnumHelper spinnerHelper) {
super(clazz, settData, title, icon);
mSpinnerHelper = spinnerHelper;
if (mSpinnerHelper instanceof ISettingsSpinnerEnumHelper.SpinnerLayoutProvider) {
mLayoutProvider = (ISettingsSpinnerEnumHelper.SpinnerLayoutProvider) mSpinnerHelper;
} else {
mLayoutProvider = new DefaultSpinnerLayoutProvider();
}
mSpinnerMode = Spinner.MODE_DROPDOWN;
}
示例2: getLayoutTypeId
@Override
public final int getLayoutTypeId() {
if (mSpinnerMode == Spinner.MODE_DROPDOWN) {
return R.id.id_adapter_setting_spinner_item;
} else {
return R.id.id_adapter_setting_spinner_dialog_item;
}
}
示例3: getLayout
@Override
public final int getLayout() {
if (mSpinnerMode == Spinner.MODE_DROPDOWN) {
return R.layout.adapter_setting_item_spinner;
} else {
return R.layout.adapter_setting_item_spinner_dialog;
}
}
示例4: createViewInstance
@Override
protected ReactPicker createViewInstance(ThemedReactContext reactContext) {
return new ReactPicker(reactContext, Spinner.MODE_DROPDOWN);
}