android - Button focused state getting lost : Google TV -
in google tv application, there around 6 buttons pressed, focused, enabled etc. states them.
all buttons have got same pressed, focused, enabled etc. states in xml file below.
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/default_bt" android:state_enabled="true" android:state_pressed="true"/> <!-- pressed --> <item android:drawable="@drawable/default_bt" android:state_enabled="false" /> <!-- disabled --> <item android:drawable="@drawable/default_bt_hvr" android:state_focused="true"/> <!-- focused --> <item android:drawable="@drawable/default_bt_hvr"/> <!-- default --> </selector>
using google tv remote, if start moving left side, buttons shifting focus , when reach leftmost button, focus remains on leftmost button.
from position (leftmost), if start moving right, focus coming till rightmost button goes missing after that.
is accepted behavior or wrong it?
any appreciated.
it not general case.
so, managed bring focus view.requestfocus()
wherever required;
Comments
Post a Comment