How to set clickable and highlightable a ViewStub?

Posted by Pentium10 on Stack Overflow See other posts from Stack Overflow or by Pentium10
Published on 2010-03-20T11:16:48Z Indexed on 2010/03/20 11:21 UTC
Read the original article Hit count: 384

I have ViewStubs in my layout. If I set clickable and implement the OnClickListener this does work only on the root of the element.
But the layout holds parent elements, and when I click on those the click is not recognized.

How do I make a full row/view of ViewStub as whole to be clickable and highlightable like a ListView elements? Also what do I have to add to get that orange highlight?

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk