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

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -