baoyongzhang / baoyongzhang/android-PullRefreshLayout

Animation Freeze while requesting server

Open
#36 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.1k
Forks
515
PR merge metrics
No merged PRs in 30d

Description

refresh_layout.setOnRefreshListener(new PullRefreshLayout.OnRefreshListener() {

```
@Override
public void onRefresh() {
// TODO Auto-generated method stub

refresh_layout.post(new Runnable() {

@Override
public void run() {
// TODO Auto-generated method stub
refresh_layout.setRefreshing(true);
// requesting to webservice
}
});
}
});
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start from the OnRefreshListener.onRefresh callback and the refresh_layout.setRefreshing(true) call shown in the report. Reproduce the behavior while the webservice request runs, then trace how the refresh animation and request interact. Done means the refresh animation does not freeze during the server request.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.