android.view.SurfaceView.getVisibility()方法的使用及代码示例

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

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

SurfaceView.getVisibility介绍

暂无

代码示例

代码示例来源:origin: Affectiva/android-sdk-samples

@Override
  public void onClick(View v) {
    if (cameraPreview.getVisibility() == View.VISIBLE) {
      cameraPreview.setVisibility(View.INVISIBLE);
      surfaceViewVisibilityButton.setText("SHOW SURFACE VIEW");
    } else {
      cameraPreview.setVisibility(View.VISIBLE);
      surfaceViewVisibilityButton.setText("HIDE SURFACE VIEW");
    }
  }
});

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

@Override
public void onClick(View v) {
  if (sv.getVisibility() == View.GONE) {
    sv.setVisibility(View.VISIBLE);
    final Animation show = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.show_video);
@Override
public void onClick(View v) {
  if (sv.getVisibility() == View.VISIBLE) {
    final Animation hide = AnimationUtils.loadAnimation(getApplicationContext(), R.anim.hide_video);
    hide.setAnimationListener(new Animation.AnimationListener() {

相关文章