本文整理了Java中android.widget.ImageView.setVisibility()
方法的一些代码示例,展示了ImageView.setVisibility()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.setVisibility()
方法的具体详情如下:
包路径:android.widget.ImageView
类名称:ImageView
方法名:setVisibility
暂无
代码示例来源:origin: google/ExoPlayer
private void hideArtwork() {
if (artworkView != null) {
artworkView.setImageResource(android.R.color.transparent); // Clears any bitmap reference.
artworkView.setVisibility(INVISIBLE);
}
}
代码示例来源:origin: lipangit/JiaoZiVideoPlayer
@Override
public void setUp(JZDataSource jzDataSource, int screen) {
super.setUp(jzDataSource, screen);
if (currentScreen == SCREEN_WINDOW_FULLSCREEN) {
shareButton.setVisibility(View.VISIBLE);
} else {
shareButton.setVisibility(View.INVISIBLE);
}
}
}
代码示例来源:origin: scwang90/SmartRefreshLayout
@Override
public int onFinish(@NonNull RefreshLayout layout, boolean success) {
mProgressDrawable.stop();//停止动画
mProgressView.setVisibility(GONE);//隐藏动画
if (success){
mHeaderText.setText("刷新完成");
} else {
mHeaderText.setText("刷新失败");
}
return 500;//延迟500毫秒之后再弹回
}
代码示例来源:origin: lipangit/JiaoZiVideoPlayer
@Override
public void changeUiToPauseShow() {
super.changeUiToPauseShow();
thumbImageView.setVisibility(View.VISIBLE);
}
代码示例来源:origin: lipangit/JiaoZiVideoPlayer
public void setAllControlsVisiblity(int topCon, int bottomCon, int startBtn, int loadingPro,
int thumbImg, int bottomPro, int retryLayout) {
topContainer.setVisibility(topCon);
bottomContainer.setVisibility(bottomCon);
startButton.setVisibility(startBtn);
loadingProgressBar.setVisibility(loadingPro);
thumbImageView.setVisibility(thumbImg);
bottomProgressBar.setVisibility(bottomPro);
mRetryLayout.setVisibility(retryLayout);
}
代码示例来源:origin: lipangit/JiaoZiVideoPlayer
@Override
public void onAutoCompletion() {
super.onAutoCompletion();
thumbImageView.setVisibility(View.GONE);
}
代码示例来源:origin: lipangit/JiaoZiVideoPlayer
@Override
public void changeUiToPauseClear() {
super.changeUiToPauseClear();
thumbImageView.setVisibility(View.VISIBLE);
}
代码示例来源:origin: CarGuo/GSYVideoPlayer
private void resolveNormalVideoUI() {
//增加title
detailPlayer.getTitleTextView().setVisibility(View.GONE);
detailPlayer.getBackButton().setVisibility(View.GONE);
}
代码示例来源:origin: CarGuo/GSYVideoPlayer
private void resolveNormalVideoUI() {
//增加title
detailPlayer.getTitleTextView().setVisibility(View.GONE);
detailPlayer.getBackButton().setVisibility(View.GONE);
}
代码示例来源:origin: CarGuo/GSYVideoPlayer
private void resolveNormalVideoUI() {
//增加title
detailPlayer.getTitleTextView().setVisibility(View.VISIBLE);
detailPlayer.getBackButton().setVisibility(View.VISIBLE);
}
}
代码示例来源:origin: CarGuo/GSYVideoPlayer
private void resolveNormalVideoUI() {
//增加title
detailPlayer.getTitleTextView().setVisibility(View.GONE);
detailPlayer.getBackButton().setVisibility(View.GONE);
}
代码示例来源:origin: CarGuo/GSYVideoPlayer
private void resolveNormalVideoUI() {
//增加title
webPlayer.getTitleTextView().setVisibility(View.GONE);
webPlayer.getBackButton().setVisibility(View.GONE);
}
}
代码示例来源:origin: CarGuo/GSYVideoPlayer
private void resolveNormalVideoUI() {
//增加title
detailPlayer.getTitleTextView().setVisibility(View.VISIBLE);
detailPlayer.getBackButton().setVisibility(View.VISIBLE);
}
}
代码示例来源:origin: CarGuo/GSYVideoPlayer
@Override
public void onEnterFullscreen(String url, Object... objects) {
super.onEnterFullscreen(url, objects);
//隐藏调全屏对象的返回按键
GSYVideoPlayer gsyVideoPlayer = (GSYVideoPlayer)objects[1];
gsyVideoPlayer.getBackButton().setVisibility(View.GONE);
}
代码示例来源:origin: CarGuo/GSYVideoPlayer
@Override
public void onAutoCompletion() {
super.onAutoCompletion();
if (mLockCurScreen) {
lockTouchLogic();
mLockScreen.setVisibility(GONE);
}
}
代码示例来源:origin: CarGuo/GSYVideoPlayer
@Override
public void onEnterFullscreen(String url, Object... objects) {
super.onEnterFullscreen(url, objects);
//隐藏调全屏对象的返回按键
GSYVideoPlayer gsyVideoPlayer = (GSYVideoPlayer) objects[1];
gsyVideoPlayer.getBackButton().setVisibility(View.GONE);
}
代码示例来源:origin: pockethub/PocketHub
private void updateAssignee() {
User selected = filter.getAssignee();
if (selected != null) {
avatars.bind(avatarView, selected);
assigneeText.setText(selected.login());
} else {
avatarView.setVisibility(GONE);
assigneeText.setText(R.string.assignee_anyone);
}
}
代码示例来源:origin: CarGuo/GSYVideoPlayer
@Override
public void onEnterFullscreen(String url, Object... objects) {
super.onEnterFullscreen(url, objects);
//隐藏调全屏对象的返回按键
GSYVideoPlayer gsyVideoPlayer = (GSYVideoPlayer) objects[1];
gsyVideoPlayer.getBackButton().setVisibility(View.GONE);
}
代码示例来源:origin: CarGuo/GSYVideoPlayer
@Override
public void onEnterFullscreen(String url, Object... objects) {
super.onEnterFullscreen(url, objects);
//隐藏调全屏对象的返回按键
GSYVideoPlayer gsyVideoPlayer = (GSYVideoPlayer) objects[1];
gsyVideoPlayer.getBackButton().setVisibility(View.GONE);
}
代码示例来源:origin: nickbutcher/plaid
@Override
public void onAvailable(Network network) {
connected = true;
if (adapter.getDataItemCount() != 0) return;
runOnUiThread(() -> {
TransitionManager.beginDelayedTransition(drawer);
noConnection.setVisibility(View.GONE);
loading.setVisibility(View.VISIBLE);
dataManager.loadAllDataSources();
});
}
内容来源于网络,如有侵权,请联系作者删除!