How to set clickable and highlightable a View?
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/21
11:51 UTC
Read the original article
Hit count: 199
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