如何判断一个View是否在屏幕中显示
1个回答
展开全部
1.当Android 的版本为6.0以下时
[java] view plain copy
</pre><pre name="code" class="java">
[java] view plain copy
</pre><pre name="code" class="java">
[java] view plain copy
pullListView.setOnScrollListener(new AbsListView.OnScrollListener() {
@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
}
[java] view plain copy
</pre><pre name="code" class="java">
[java] view plain copy
</pre><pre name="code" class="java">
[java] view plain copy
pullListView.setOnScrollListener(new AbsListView.OnScrollListener() {
@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询