java - Keep d-pad focus changes within current fragment -
i have android app primary receives input using d-pad (up, down, left, right, ok, back)
the app runs on tv uses fragments separate sections.
i keep directional buttons focusing views in other fragments. , handle directional buttons differently depending on fragment set "current"
what elegant solution this?
also, fragments dynamically changed @ runtime.
when d-pad means of navigation user, such on google tv's, it's not idea stop navigation @ edge of fragment. how solved this, allowing cross-border navigation , laying out elements navigation not awkward , works finding path automatically (after all, there not seem way statically provide next element focus on in each direction, when in fragment).
like i'm looking reference advice on how deal fragments , navigation on google tv.
Comments
Post a Comment