android.widget.Spinner.isEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(105)

本文整理了Java中android.widget.Spinner.isEnabled()方法的一些代码示例,展示了Spinner.isEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Spinner.isEnabled()方法的具体详情如下:
包路径:android.widget.Spinner
类名称:Spinner
方法名:isEnabled

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

相关文章