Comments (3)
Same issue here =)...any hints about where to start? Tried around in the styles, but no success...
from pulltorefresh-listview.
Same problem. Also see this problem in https://github.com/chrisbanes/Android-PullToRefresh :(
from pulltorefresh-listview.
public boolean onTouchEvent(MotionEvent event) {
final int y = (int) event.getY();
mBounceHack = false;
switch (event.getAction()) {
case MotionEvent.ACTION_UP:
if (!isVerticalScrollBarEnabled()) {
setVerticalScrollBarEnabled(true);
}
if (getFirstVisiblePosition() == 0 && mRefreshState != REFRESHING) {
if ((mRefreshView.getBottom() >= mRefreshViewHeight || mRefreshView
.getTop() >= 0) && mRefreshState == RELEASE_TO_REFRESH) {
// Initiate the refresh
mRefreshState = REFRESHING;
prepareForRefresh();
onRefresh();
} else if (mRefreshView.getBottom() < mRefreshViewHeight
|| mRefreshView.getTop() <= 0) {
// Abort refresh and scroll down below the refresh view
resetHeader();
// setSelection(1); // try delete this row
}
}
break;
case MotionEvent.ACTION_DOWN:
mLastMotionY = y;
break;
case MotionEvent.ACTION_MOVE:
applyHeaderPadding(event);
break;
}
return super.onTouchEvent(event);
}
from pulltorefresh-listview.
Related Issues (20)
- Flicker when setAdapter HOT 1
- Place listView below another view HOT 1
- animation "stutters" if listview has padding HOT 3
- when the listview is refreshing I can not click the item to turn to another activity
- ClassCastException preventing PullToRefreshListView from inflating
- eu.erikw.PullToRefreshListView failed to instantiate
- Customize the distance from when "Release to refresh" is showed
- PullToRefresh_ListView in ViewPager HOT 2
- "Pull to refresh" banner disappears if I scroll to the bottom of the list HOT 1
- bouncing animation problem
- PullToRefresh banner gets locked when scrolling quickly HOT 1
- ListView not Visible entire list items (or) some items are not completely displayed HOT 2
- Caused by: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.RelativeLayout HOT 1
- java.lang.IllegalStateException HOT 4
- setOnItemClickListener has the wrong position. HOT 3
- ptr_header.xml should include layout_width/layout_height or it will cause exception
- How to use with listfragment
- PTRListView below other layouts
- Pull to left or right and show icon from left or right
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulltorefresh-listview.