1、开发Android TV APP, 使用遥控器选中按钮或者选着其它菜单

如果没有高亮显示,就看不出选中哪个按钮或者菜单

2、在drawable 添加 border_red.xml 设置选中高亮

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <corners android:radius="2dp"/>
    <stroke
        android:color="#FF0000"
        android:width="3dp" />
    <solid android:color="#00FF0000" />
</shape>
View Code

相关文章: