Android Question tabHost Doesn't Respond to Click Events

andrewj

Active Member
Licensed User
Longtime User
Hi,

I have a layout based around a tabHost called tabTabs. The tabTabs_TabChanged event fires fine, and my tab switching logic works OK. However I want to respond to a long press by offering options to add or remove (hide) the current tab. However the tabTabs_LongClick event doesn't seem to fire. I've also tried a tabTabs_Click event, and can't get anything from that either. Any ideas?

Thanks
Andrew
 

mangojack

Expert
Licensed User
Longtime User
Read this .. TabHost Click Event ..

It appears (and tested) the Click event does NOT fire. The Long Click event fires on the page/panel displayed for that Tab (not the Tab itself)
 
Upvote 0

andrewj

Active Member
Licensed User
Longtime User
The Long Click event fires on the page/panel displayed for that Tab (not the Tab itself)

Could you please clarify what you mean here? Does this mean I can only long click on the panel? I have a "full screen" webview on each tab and I want to intercept the long press there separately. Is there no way to get an event from the tab header?

Thanks
Andrew
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
It appears the long click does not work on a webview . From what I know the tab header will only offer the Tab Changed event.
 
Upvote 0
Top