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

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

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

Spinner.getVisibility介绍

暂无

代码示例

代码示例来源:origin: lordi/tickmate

private boolean isAllGroupSelected() {
  // we only have the default "all" group, so return that one
  if (mGroupSpinner.getVisibility() == View.GONE) {
    return (mSpinnerPosition == TickmateConstants.ALL_GROUPS_SPINNER_INDEX);
  }
  return (mGroupSpinner.getSelectedItemPosition() == TickmateConstants.ALL_GROUPS_SPINNER_INDEX);
}

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

public class checkSelectedItem implements OnItemSelectedListener {

public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {
  Spinner spinner1 = (Spinner)parent.findViewById(R.id.spinner1);
  TextView textview1 = (TextView)parent.findViewById(R.id.textView1);
  if (pos == 1) {
    textview1.setVisibility(View.VISIBLE);
    spinner1.setVisibility(View.VISIBLE);
  }
  else {
    if ( textview1.getVisibility() == View.VISIBLE) {
      textview1.setVisibility(View.INVISIBLE);
    }
    if ( spinner1.getVisibility() == View.VISIBLE) {
      spinner1.setVisibility(View.INVISIBLE);
    }
  }
}

public void onNothingSelected(AdapterView parent) {

}

代码示例来源:origin: crazyhitty/Munch

private void hideSpinnerAndFab() {
  if (spinnerSources.getVisibility() != View.INVISIBLE || secondaryLayout.getVisibility() != View.INVISIBLE) {
    new FadeAnimationUtil(HomeActivity.this).fadeOutAlpha(spinnerSources, 500);
  }
  //spinnerSources.setVisibility(View.INVISIBLE);
  fab.hideMenuButton(true);
}

代码示例来源:origin: brarcher/video-transcoder

private void checkSelectedSettings(Activity activity, MediaInfo expected)
  assertEquals(containerSpinner.getVisibility(), View.VISIBLE);
  assertEquals(containerSpinner.getSelectedItem().toString(), expected.container.ffmpegName);

相关文章