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

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

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

SeekBar.getVisibility介绍

暂无

代码示例

代码示例来源:origin: pili-engineering/PLDroidShortVideo

public void onClickBrightness(View v) {
  boolean isVisible = mAdjustBrightnessSeekBar.getVisibility() == View.VISIBLE;
  mAdjustBrightnessSeekBar.setVisibility(isVisible ? View.GONE : View.VISIBLE);
}

代码示例来源:origin: pili-engineering/PLDroidShortVideo

public void onClickBrightness(View v) {
  boolean isVisible = mAdjustBrightnessSeekBar.getVisibility() == View.VISIBLE;
  mAdjustBrightnessSeekBar.setVisibility(isVisible ? View.GONE : View.VISIBLE);
}

代码示例来源:origin: renyuneyun/Easer

private static Integer getVolume(SeekBar seekBar) {
    if (seekBar.getVisibility() == View.VISIBLE)
      return seekBar.getProgress();
    else
      return null;
  }
}

代码示例来源:origin: techery/progresshint

@Override public void onGlobalLayout() {
  if (mSeekBar.getVisibility() != View.VISIBLE) hidePopup();
  else checkInitialState();
 }
};

代码示例来源:origin: souch/SMP

@Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
  if (seekbar.getVisibility() == TextView.VISIBLE) {
    currDuration.setText(RowSong.secondsToMinutes(seekBar.getProgress()));
  }
}

代码示例来源:origin: Aspsine/EditTextInListView

@Override
public boolean onOptionsItemSelected(MenuItem item) {
  if (item.getItemId() == Menu.NONE) {
    if (seekBar.getVisibility() == View.VISIBLE){
      seekBar.setVisibility(View.GONE);
    }else {
      seekBar.setVisibility(View.VISIBLE);
    }
  }
  return super.onOptionsItemSelected(item);
}

代码示例来源:origin: andreadec/MusicPlayer

@Override
public void onClick(View view) {
  if (view.equals(imageButtonPlayPause)) {
    musicService.playPause();
    updatePlayPauseButton();
  } else if(view.equals(imageButtonNext)) {
    musicService.nextItem();
  } else if(view.equals(imageButtonPrevious))  {
    musicService.previousItem(false);
  } else if(view.equals(textViewTime)) {
    showRemainingTime = !showRemainingTime;
  } else if(view.equals(imageButtonShowSeekbar2)) {
    if (seekBar2.getVisibility() == View.VISIBLE) {
      imageButtonShowSeekbar2.setImageResource(R.drawable.expand);
      seekBar2.setVisibility(View.GONE);
    } else {
      imageButtonShowSeekbar2.setImageResource(R.drawable.collapse);
      seekBar2.setVisibility(View.VISIBLE);
    }
  }
}

代码示例来源:origin: Swati4star/Images-to-PDF

/**
 * Get Item Position and call Filter Function
 *
 * @param view     - view which is clicked
 * @param position - position of item clicked
 */
@Override
public void onItemClick(View view, int position) {
  //setting mClicked true when none filter is selected otherwise false
  mClicked = position == 0;
  // Brush effect is in second position
  if (position == 1) {
    mPhotoEditor = new PhotoEditor.Builder(this, mPhotoEditorView)
        .setPinchTextScalable(true)
        .build();
    if (doodleSeekBar.getVisibility() == View.GONE && brushColorsView.getVisibility() == View.GONE) {
      showBrushEffect();
    } else if (doodleSeekBar.getVisibility() == View.VISIBLE &&
        brushColorsView.getVisibility() == View.VISIBLE) {
      hideBrushEffect();
    }
  } else {
    applyFilter(mFilterItems.get(position).getFilter());
  }
}

相关文章

SeekBar类方法