recyclerView是android编程最常用的控件。
TV端获取recyclerview子项的焦点方法:
必须在子项xml文件中如下设置:
android:clickable="true" android:focusable="true" android:focusableInTouchMode="true"获取的焦点才会生效。
recyclerView是android编程最常用的控件。
TV端获取recyclerview子项的焦点方法:
必须在子项xml文件中如下设置:
android:clickable="true" android:focusable="true" android:focusableInTouchMode="true"获取的焦点才会生效。