omadahealth / SwipyRefreshLayout

A SwipeRefreshLayout extension that allows to swipe in both direction
MIT License
963 stars 218 forks source link

Not work with RecyclerView #61

Closed chihung93 closed 7 years ago

chihung93 commented 7 years ago

SwipyRefreshLayout shows though not until the end of the list

oliveeyay commented 7 years ago

Hello @trihung93

Something must be wrong in your adapter, it works fine with me.

Cheers,

Olivier

ghost commented 7 years ago

@olivierg13 It seems mTouchSlop changes when user using listView or recyclerView. So it's working well with listView, but have to pull far away when using recyclerView.

Please let me know your opinion and when can you fix this problem.

chihung93 commented 7 years ago

it's not working . My project use Recyclerview : https://github.com/trihung93/SwipyRefreshLayout

Hitexroid commented 7 years ago

it works fine with me. 🥇

chihung93 commented 7 years ago

@Hitexroid Are you run my project? Or just example from OrangeGangsters

Hitexroid commented 7 years ago

no , i see your project your problem is in activity_main.xml

remove FrameLayout :)

chihung93 commented 7 years ago

SwipyRefreshLayout extends ViewGroup, But I must use FrameLayout for multiple View in there. Thank you so much @Hitexroid

Hitexroid commented 7 years ago

Child of Swipy must be RecyclerView FrameLayout or etc... not support ! and it's a bug .