![]() |
1
3
移动设备使用图标,电视设备使用横幅,因此您可以将它们指向单独的资源:
|
![]() |
2
2
Step1:为Android TV创建单独的活动 步骤2:使用 标签
|
![]() |
3
1
作为 official documentation 我引述如下:
您可以使用
|
![]() |
4
0
所有的答案都给了我一些提示。这是我的最终解决方案,已被Google Play接受。 在AndroidManifest.xml中,为应用程序标记指定手机和平板电脑的图标。(安卓系统:图标=“@mipmap/ic_launcher”)。必须这样做。否则, the app would crash .
这里是关键:android:icon=“@mipmap/ic_launcher_round”适用于手机和平板电脑,android:banner=“@mipmap/ic_banner”适用于android TV,位于启动器活动的活动标签中:
手机和平板电脑将使用ic_launcher_round,安卓电视将自动使用ic_banner。 |