简体   繁体   English

如何在主屏幕上设置 Fire TV“图标”?

[英]How to set the Fire TV “icon” on home screen?

I have a Fire TV app that will also be released on normal Android TV and one some TVs that have Android that isn't Android TV and possibly on tablets.我有一个 Fire TV 应用程序,该应用程序也将在普通的 Android 电视和一些具有 Android 的电视上发布,而不是 Android 电视,也可能在平板电脑上发布。 So I've set my banner for Android TV and that is working fine, the icon works fine on other devices but the Fire TV shows the icon where I expect the banner to be shown.因此,我为 Android 电视设置了横幅,并且工作正常,该图标在其他设备上工作正常,但 Fire TV 显示了我希望显示横幅的图标。 This is my application xml:这是我的应用程序 xml:

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:banner="@drawable/banner"
    android:theme="@style/AppTheme">

    <activity
        android:name=".start.MainActivity"
        android:banner="@drawable/banner"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:logo="@drawable/banner"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:screenOrientation="landscape">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
        </intent-filter>
    </activity>
</application>

What am I missing?我错过了什么? I make the custom xml as well with what's below but didn't help:我制作了自定义 xml 以及以下内容,但没有帮助:

<resources>
    <drawable name="splash_logo">@drawable/banner</drawable>
    <drawable name="app_logo">@drawable/banner</drawable>
    <drawable name="company_logo">@drawable/banner</drawable>
</resources>

To answer my own question, that appears to come from the Amazon App Store.回答我自己的问题,这似乎来自亚马逊应用商店。 Once I released my app, the banner magically changed on its own.一旦我发布了我的应用程序,横幅就会神奇地自行改变。

if it is accepted yes but if not!!!!如果它被接受是的,但如果不是!!!! you must have something like that你一定有类似的东西

<application android:icon="@drawable/ic_launcher"... <应用程序 android:icon="@drawable/ic_launcher"...

Please note that this ic_launcher must be 192x192请注意,这个 ic_launcher 必须是 192x192

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Android TV 主屏幕上为当前正在运行的任务设置图标和标题 - How to set the icon and title on Android TV home screen for the currently running task 应用程序启动器图标未显示在 Android 电视的主屏幕中 - app launcher icon is not showing in home screen of android tv 如何以编程方式在主屏幕应用程序图标android中设置徽章编号? - How set badge number in home screen app icon android programatically? 如何在android的主屏幕上添加快捷方式图标? - how to add shortcut icon on home screen in android? 如何在主屏幕android上实现Icon动画? - How to achieve Icon animation on home screen android? 如何在主屏幕中显示浮动图标 - How To Display A Floating Icon In Home Screen 如何刷新Android主屏幕上的PWA图标? - How to refresh PWA icon on Android home screen? 当用户单击主屏幕上的应用程序图标时,如何设置已经运行的活动 - how to Set already running activity, when user clicks on app icon on home screen 如何根据屏幕分辨率查找主屏幕图标大小 - How to find home screen icon size from screen resolution 如何添加在Amazon Fire TV中专注于应用程序图标时将出现的后仰背景? - How to add a lean-back background that will appear when focused on the app's icon in Amazon Fire TV?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM