Focus goes out of view
Focus goes out of view
I finally have installed a Android-TV-box and (ofcourse) had to install LLX on it. It works lika a charm. And navigation with standard IR-remote work perfectly with the ‘focus-styling’.
But I would expect comming to the last row on my screen and pushing the ‘down’-button on my IR-remote, that the next row would come into view on my screen…
It does not. –> Focus goes out of view.
I think I could make a script to make it work. But I think this should be working without a script.
PS. Yes, Droidmote works better/easier than IR-remote. But has the same issue.
]]>
< ![CDATA[
Completely unrelated, but which Android-TV-box did you get? Nexus Player? I keep telling myself I don’t need to buy it but I still have it added to my cart and it just calls my name daily to buy it.
]]>
< ![CDATA[
If I recall correctly this has been disabled in the past because on some old devices there were weird focus change at startup. I’ll see if I can fix the thing.
]]>
< ![CDATA[
I do not know if your focus is on ‘focus’ but I found that setting an item not ‘clickable’ still makes it able to get ‘focus’. (even ‘clickable’).
Could you make a non-clickable item non-focusable?
]]>
< ![CDATA[
Pierre Hébert I see ‘focus’ on your online todo-list. super!
Am I pushing? when I also ask for an ‘GotFocus’, ‘LostFocus’ events and ‘SetFocus’ action?
Prio can be lower as the 2 point mentioned above.
]]>
< 
]]>
< ![CDATA[
focus does not go out of view with v1.6…. but does not obey ‘no scrolling’, sry
]]>
< ![CDATA[
Lol, no scrolling affects touch based interactions, but not every other moves such as bookmarks and scripts. Focus change is only initiated by some user input, so yes maybe it can be limited by the no scrolling option.
]]>
< ![CDATA[
I couldn’t find any scipting method for focusing an item. Am I missing? I think current LL doesnt provide any ways about set/get focus by script.
]]>
< ![CDATA[
Indeed, because this is the “normal” android focus. As a consequence item.getRootView().requestFocus() should work()
or maybe:
item.getRootView().getChildAt(0).requestFocus()
I don’t recall exactly but I think there has been another post on the topic recently.
]]>
< 
]]>
< ![CDATA[
Does it work with getRootView().getChildAt(0) ?
]]>
< ![CDATA[
Pierre Hébert Yes, both cases all worked with no difference.
I tried to add subfolder in a folder, as a first child. getRootView() and getRootView().getChildAt(0) all worked like normal items like a shortcut.
]]>