As we know, tv apps use remote control's direction key to move focus from one widget to another. User needs to know which widget has got the current focus, so we may provider a focus animation effect, just draw a light widget floating on the focus widget. This light focus indicator widget will move from the previous focus widget to the current focus widget, we need calculate the move offset by the focused widget's coordinate minus the previous focus widget's coordinate. But I can't find any interface to get the widget's coordinate.
As we know, tv apps use remote control's direction key to move focus from one widget to another. User needs to know which widget has got the current focus, so we may provider a focus animation effect, just draw a light widget floating on the focus widget. This light focus indicator widget will move from the previous focus widget to the current focus widget, we need calculate the move offset by the focused widget's coordinate minus the previous focus widget's coordinate. But I can't find any interface to get the widget's coordinate.