pakerfeldt / android-viewflow

A horizontal view scroller library for Android
1.78k stars 694 forks source link

Clickable titles #28

Open costimuraru opened 13 years ago

costimuraru commented 13 years ago

Hi

As I was saying in another thread, I believe it would be a good idea to make it possible for the users to click the views' titles in order to change the current view. For example if you have "Title1 Title2(current) Title3", instead of doing a fling gesture to get to Title1 or Title2, in my opinion the user should also be able to click "Title1" and change the view. I'm saying this from my own experience, as I tried to do this the first time I installed the viewflow example and got a bit frustated because I couldn't :)

I don't know if you'll consider to add this feature. If not, please give me a hint on how I could implement it on my own.

Thanks and keep up the good work, Costi

elnoxvie commented 13 years ago

I second this but it seems that the only way to make the the title click-able is to check the bounds from onTouch. I will probably implement it that way and will update the codes here if i do it.

matt-oakes commented 13 years ago

I'll likely impliment this at some point. Someone has requested this for a project I use viewflow on.

elnoxvie commented 13 years ago

It's already implemented in JakeWharton's version for viewpager.

krajzler commented 12 years ago

Is anything new with this issue?