How To Activate A Marquee For A TextView Inside A Focused ViewGroup?
Here's a layout:
Solution 1:
OK, I've found some kind of way. I added android:focusable="true" to first_tv, and instantiated first_tv_container as an extended version of RelativeLayout in which I declare descendantFocusability="blocksDescendants" and define the following override:
@Override
protected void onFocusChanged(boolean gainFocus, int direction, Rect previouslyFocusedRect)
{
super.onFocusChanged(gainFocus, direction, previouslyFocusedRect);
setSelected(gainFocus);
dispatchSetSelected(gainFocus);
}
Exactly the kind of stuff I wanted to avoid, but that will do for now.
Post a Comment for "How To Activate A Marquee For A TextView Inside A Focused ViewGroup?"