jjoe64 / GraphView

Android Graph Library for creating zoomable and scrollable line and bar graphs.
https://github.com/jjoe64/GraphView/wiki
Other
2.76k stars 812 forks source link

setscalable conflicts with viewpager #276

Open kasperbaes opened 9 years ago

kasperbaes commented 9 years ago

I have an activity that holds 2 fragments with a viewpager to scroll between them. In the first fragment i have an mapfragment and a graphview which is scalable. In the second one, i have some basic stuff like textviews and such. Now, if i want to browse in my graphview, i scroll a little bit and then the viewpager takes over and takes me to the other fragment. Is there a way on how i can fix this? device-2015-01-14-145915

jjoe64 commented 9 years ago

I will try this asap. Maybe it helps you, if you override the onTouchEvent method of GraphView and call the GraphViews implementation and after it always return true

kasperbaes commented 9 years ago

i don't know if you are familliar with mytracks from google, but they have a graph on which you can scroll horizontally that does not conflict with a viewpager here you can see the code of it: https://github.com/jgillich/mytracks/tree/master/MyTracks/src/com/google/android/apps/mytracks

lukeallison commented 9 years ago

I have 4.01 and this is still an issue as far as I can see...