本文整理了Java中android.support.v4.widget.SwipeRefreshLayout.isEnabled()
方法的一些代码示例,展示了SwipeRefreshLayout.isEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SwipeRefreshLayout.isEnabled()
方法的具体详情如下:
包路径:android.support.v4.widget.SwipeRefreshLayout
类名称:SwipeRefreshLayout
方法名:isEnabled
暂无
代码示例来源:origin: ISchwarz23/SortableTableView
/**
* Gives information whether the swipe to refresh feature shall be enabled or not.
*
* @return Boolean indication whether the swipe to refresh feature shall be enabled or not.
*/
public boolean isSwipeToRefreshEnabled() {
return swipeRefreshLayout.isEnabled();
}
代码示例来源:origin: ymback/NGA-CLIENT-VER-OPEN-SOURCE
@Override
public void setRefreshing(boolean refreshing) {
if (mSwipeRefreshLayout.isEnabled()) {
mSwipeRefreshLayout.setRefreshing(refreshing);
}
}
代码示例来源:origin: z3896823/PanelList
@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
this.scrollState = scrollState;
if (scrollState == SCROLL_STATE_IDLE || scrollState == SCROLL_STATE_TOUCH_SCROLL) {
View subView = view.getChildAt(0);
if (subView != null && view == lv_content) {
int top = subView.getTop();
int position = view.getFirstVisiblePosition();
lv_column.setSelectionFromTop(position, top);
} else if (subView != null && view == lv_column) {
int top = subView.getTop();
int position = view.getFirstVisiblePosition();
lv_content.setSelectionFromTop(position, top);
}
}
// 滑动事件冲突的解决:如果ListView的首条item的position != 0,即此时不再顶上,则将下拉刷新禁用
if (swipeRefreshEnable) {
if (view.getFirstVisiblePosition() != 0 && swipeRefreshLayout.isEnabled()) {
swipeRefreshLayout.setEnabled(false);
}
if (view.getFirstVisiblePosition() == 0) {
swipeRefreshLayout.setEnabled(true);
}
}
}
代码示例来源:origin: kingargyle/adt-leanback-support
if (!isEnabled() || mReturningToStart || canChildScrollUp()) {
代码示例来源:origin: kingargyle/adt-leanback-support
if (!isEnabled() || mReturningToStart || canChildScrollUp() || mRefreshing) {
内容来源于网络,如有侵权,请联系作者删除!