ilan Expert Licensed User Longtime User Jun 12, 2017 #1 hi i am using the TabStripViewPager. i add it via designer and i would like to catch the title label when i click on them. what it does now it changes the page when i click on the label BUT if tab page 2 i shown and i click on its label title nothing happens. its ok like this since the page is already visible but i would like to do something when the label is clicked. (only the label of the visible page!) is it possible? thanx
hi i am using the TabStripViewPager. i add it via designer and i would like to catch the title label when i click on them. what it does now it changes the page when i click on the label BUT if tab page 2 i shown and i click on its label title nothing happens. its ok like this since the page is already visible but i would like to do something when the label is clicked. (only the label of the visible page!) is it possible? thanx
Erel B4X founder Staff member Licensed User Longtime User Jun 14, 2017 #2 Get the labels with GetAllTabLabels: https://www.b4x.com/android/forum/t...ger-better-viewpager.63975/page-2#post-408977 Use Reflector.SetOnClickListener to add a click event: https://www.b4x.com/android/help/reflection.html#reflector_setonclicklistener Upvote 0
Get the labels with GetAllTabLabels: https://www.b4x.com/android/forum/t...ger-better-viewpager.63975/page-2#post-408977 Use Reflector.SetOnClickListener to add a click event: https://www.b4x.com/android/help/reflection.html#reflector_setonclicklistener
ilan Expert Licensed User Longtime User Jun 14, 2017 #3 Erel said: Use Reflector.SetOnClickListener to add a click event: https://www.b4x.com/android/help/reflection.html#reflector_setonclicklistener Click to expand... Wow this is amazing. I had no clue its possible to do that. Thank you Upvote 0
Erel said: Use Reflector.SetOnClickListener to add a click event: https://www.b4x.com/android/help/reflection.html#reflector_setonclicklistener Click to expand... Wow this is amazing. I had no clue its possible to do that. Thank you