本文整理了Java中android.support.v4.widget.NestedScrollView.setVisibility()
方法的一些代码示例,展示了NestedScrollView.setVisibility()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。NestedScrollView.setVisibility()
方法的具体详情如下:
包路径:android.support.v4.widget.NestedScrollView
类名称:NestedScrollView
方法名:setVisibility
暂无
代码示例来源:origin: HotBitmapGG/bilibili-android-client
@OnClick(R.id.more_layout)
void showAndHideMoreLayout() {
if (isShowMore) {
isShowMore = false;
mScrollView.setVisibility(View.VISIBLE);
mMoreText.setText("收起");
mTagFlowLayout.setVisibility(View.GONE);
Drawable upDrawable = getResources().getDrawable(R.drawable.ic_arrow_up_gray_round);
upDrawable.setBounds(0, 0, upDrawable.getMinimumWidth(), upDrawable.getMinimumHeight());
mMoreText.setCompoundDrawables(upDrawable, null, null, null);
} else {
isShowMore = true;
mScrollView.setVisibility(View.GONE);
mMoreText.setText("查看更多");
mTagFlowLayout.setVisibility(View.VISIBLE);
Drawable downDrawable = getResources().getDrawable(R.drawable.ic_arrow_down_gray_round);
downDrawable.setBounds(0, 0, downDrawable.getMinimumWidth(), downDrawable.getMinimumHeight());
mMoreText.setCompoundDrawables(downDrawable, null, null, null);
}
}
代码示例来源:origin: WangDaYeeeeee/Mysplash
private void initWidget() {
scrollView.setVisibility(View.GONE);
}
代码示例来源:origin: CoderLengary/WanAndroid
@Override
public void showEmptyView(boolean toShow) {
emptyView.setVisibility(toShow?View.VISIBLE:View.INVISIBLE);
nestedScrollView.setVisibility(!toShow?View.VISIBLE:View.INVISIBLE);
}
代码示例来源:origin: CoderLengary/WanAndroid
@Override
public void showEmptyView(boolean toShow) {
emptyView.setVisibility(toShow?View.VISIBLE:View.INVISIBLE);
nestedScrollView.setVisibility(!toShow?View.VISIBLE:View.INVISIBLE);
}
代码示例来源:origin: CoderLengary/WanAndroid
@Override
public void showEmptyView(boolean toShow) {
emptyView.setVisibility(toShow?View.VISIBLE:View.INVISIBLE);
nestedScrollView.setVisibility(!toShow?View.VISIBLE:View.INVISIBLE);
}
代码示例来源:origin: trezor/trezor-android
nestedScrollView.setVisibility(View.GONE);
btnNotification.setVisibility(View.GONE);
nestedScrollView.setVisibility(View.VISIBLE);
代码示例来源:origin: zhangke3016/TranslationCompat
nsv.setVisibility(View.INVISIBLE);
ImageView iv_second = (ImageView) findViewById(R.id.iv_second);
iv_second.setImageResource(R.drawable.list1);
代码示例来源:origin: zhangke3016/TranslationCompat
getSupportActionBar().hide();
nsv = (NestedScrollView) findViewById(R.id.nsv);
nsv.setVisibility(View.INVISIBLE);
ImageView iv_second = (ImageView) findViewById(R.id.iv_second);
iv_second.setImageResource(R.drawable.list2);
代码示例来源:origin: zhangke3016/TranslationCompat
nsv.setVisibility(View.INVISIBLE);
ImageView iv_second = (ImageView) findViewById(R.id.iv_second);
iv_second.setImageResource(R.drawable.list3);
内容来源于网络,如有侵权,请联系作者删除!