本文整理了Java中android.widget.Spinner.isEnabled()
方法的一些代码示例,展示了Spinner.isEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Spinner.isEnabled()
方法的具体详情如下:
包路径:android.widget.Spinner
类名称:Spinner
方法名:isEnabled
暂无
代码示例来源:origin: Calsign/APDE
@Override
public void afterTextChanged(Editable s) {
if (aliasPassword.length() > 0) {
ValidationResult result = loadKey(new File(keystoreFile.getText().toString()),
keystorePassword.getText().toString().toCharArray(),
aliasAdapter.getItem(alias.getSelectedItemPosition()),
aliasPassword.getText().toString().toCharArray());
if (result.resultCode() == 0) {
exportButton.setEnabled(true);
messageView(exportMessage, ValidationResult.MessageSeverity.INFO,
String.format(Locale.US, context.getResources().getString(R.string.export_signed_package_info_export_ready),
context.getSketchName(),
new SimpleDateFormat(context.getResources().getString(R.string.export_signed_package_date_format), Locale.US).format(certificate.getNotAfter())));
} else {
exportButton.setEnabled(false);
messageView(exportMessage, result);
}
} else {
exportButton.setEnabled(false);
if (alias.isEnabled()) {
messageView(exportMessage, ValidationResult.MessageSeverity.INFO, R.string.export_signed_package_info_enter_key_password);
}
}
}
代码示例来源:origin: dialogflow/dialogflow-android-client
private void sendRequest() {
final String queryString = !eventSpinner.isEnabled() ? String.valueOf(queryEditText.getText()) : null;
final String eventString = eventSpinner.isEnabled() ? String.valueOf(String.valueOf(eventSpinner.getSelectedItem())) : null;
final String contextString = String.valueOf(contextEditText.getText());
代码示例来源:origin: Calsign/APDE
loadAliases((ArrayList<String>) result.extra());
if (alias.isEnabled()) {
messageView(exportMessage, ValidationResult.MessageSeverity.INFO, R.string.export_signed_package_info_enter_key_password);
aliasPassword.setEnabled(true);
代码示例来源:origin: andstatus/andstatus
MyLog.v(this, () -> "processNewIntent: " + origin.toString());
spinnerOriginType.setSelection(originTypes.getIndex(origin.getOriginType()));
if (spinnerOriginType.isEnabled()) {
spinnerOriginType.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
内容来源于网络,如有侵权,请联系作者删除!