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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2021-10-07
  • 2021-08-08
  • 2021-08-24
  • 2022-12-23
  • 2021-06-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2021-07-29
  • 2021-12-24
  • 2021-07-20
  • 2022-12-23
相关资源
相似解决方案