本文整理了Java中android.view.SurfaceView.getVisibility()
方法的一些代码示例,展示了SurfaceView.getVisibility()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SurfaceView.getVisibility()
方法的具体详情如下:
包路径:android.view.SurfaceView
类名称: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() {
内容来源于网络,如有侵权,请联系作者删除!