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

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

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

Spinner.getSelectedView介绍

暂无

代码示例

代码示例来源:origin: novoda/android-demos

private void refreshSelectedItem() {
  View selected = mView.getSelectedView();
  if (selected == null) {
    return;
  }
  selected.setActivated(mExpanded);
}

代码示例来源:origin: thyrlian/AwesomeValidation

@Override
  public void reset(ValidationHolder validationHolder) {
    TextView textViewError = (TextView) ((Spinner) validationHolder.getView()).getSelectedView();
    textViewError.setError(null);
    textViewError.setTextColor(Color.BLACK);
  }
}, R.string.err_tech_stacks);

代码示例来源:origin: thyrlian/AwesomeValidation

@Override
  public void execute(ValidationHolder validationHolder) {
    TextView textViewError = (TextView) ((Spinner) validationHolder.getView()).getSelectedView();
    textViewError.setError(validationHolder.getErrMsg());
    textViewError.setTextColor(Color.RED);
  }
}, new CustomErrorReset() {

代码示例来源:origin: stackoverflow.com

View v = spinner.getSelectedView();
((TextView)v).setTextColor(backgroundColor);

代码示例来源:origin: stackoverflow.com

View v = spinner.getSelectedView();
((TextView)v).setTextColor(backgroundColor);

代码示例来源:origin: nbenm/ImapNote2

@Override
public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {
  ((TextView) this.accountSpinner.getSelectedView()).setBackgroundColor(0xFFB6B6B6);
  Account account = Listactivity.accounts[pos];

相关文章