android - onclick attribute in LinearLayour not working if containing ImageView -


i have linearlayout horizontally oriented, this:

o text

where "o" represents imagebutton , "some text" textview. added attribute linearlayout like:

android:onclick="dosomething" 

this triggers if click anywhere on imagebutton. tried making imagebutton clickable specific attribute nothing changes. i'd user able click on inside layout fire "dosomething".

my question is: should user can click on inside linearlayout fire "dosomething" ?

everything works fine long user doesn't click on imagebutton, in case nothing happens.

edit: imagebutton not imageview


Comments

Popular posts from this blog

xslt - Substring before throwing error -

Google Cloud Bigtable Durability/Availability Guarantees -

Android M doze mode and "native" posix socket freezing up -