本文整理匯總了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);
}