本文整理了Java中android.widget.ScrollView.canScrollVertically()
方法的一些代码示例,展示了ScrollView.canScrollVertically()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ScrollView.canScrollVertically()
方法的具体详情如下:
包路径:android.widget.ScrollView
类名称:ScrollView
方法名:canScrollVertically
暂无
代码示例来源:origin: EverythingMe/overscroll-decor
@Override
public boolean isInAbsoluteEnd() {
return !mView.canScrollVertically(1);
}
}
代码示例来源:origin: EverythingMe/overscroll-decor
@Override
public boolean isInAbsoluteStart() {
return !mView.canScrollVertically(-1);
}
代码示例来源:origin: XanderWang/elasticity
@Override
public boolean isInAbsoluteEnd() {
return !mView.canScrollVertically(1);
}
}
代码示例来源:origin: XanderWang/elasticity
@Override
public boolean isInAbsoluteStart() {
return !mView.canScrollVertically(-1);
}
代码示例来源:origin: WeAreFairphone/FP2-Launcher
@Override
public boolean canTargetScrollVertically(int direction) {
return mTarget.canScrollVertically(direction);
}
}
代码示例来源:origin: stackoverflow.com
if (scrollView.canScrollVertically(1)) {
lineView.setVisibility(View.VISIBLE);
} else {
代码示例来源:origin: stackoverflow.com
private ScrollView _scrollView;
private Runnable _smoothScrollRunnable = new Runnable() {
@Override
public void run() {
_scrollView.smoothScrollBy(2, 2);
if (_scrollView.canScrollVertically(1)) {
_scrollView.postDelayed(_smoothScrollRunnable, 75);
}
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
_scrollView = (ScrollView) findViewById(R.id.scrollview);
}
@Override
protected void onResume() {
super.onResume();
_scrollView.post(_smoothScrollRunnable);
}
代码示例来源:origin: kalaspuffar/secure-quick-reliable-login
ScrollView scrollView = findViewById(R.id.main_scroll);
scrollView.getViewTreeObserver().addOnScrollChangedListener(() -> {
if(!scrollView.canScrollVertically(1)) {
moreIndicator.setVisibility(View.INVISIBLE);
} else {
内容来源于网络,如有侵权,请联系作者删除!