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
Post a Comment