简体   繁体   English

Android TV应用程序:如何在棒棒糖播放器Android TV设备中显示横幅图标

[英]Android TV App: How to show banner icon in Pre-lollipop Android TV Devices

I want to create an Android TV Application that should show bannerIcon in both pre-lollipop and post-lollipop Android TV Devices. 我想创建一个Android TV应用程序,该应用程序应在棒棒糖之前和棒棒糖之后的Android TV设备中都显示bannerIcon。

    <application
    android:name="com.MyApplication"
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/Theme.AppCompat.Light"
    android:banner="@drawable/ic_launcher_tv">


    </application>

Currently it showing Square Icon in Pre-Lollipop Android TV Device. 目前,它在Pre-Lollipop Android TV设备中显示方形图标。 But it is running fine in Android TV After 5.0 Version 但是它在5.0版本之后的Android TV中运行良好

Android TV launched with Lollipop. 随棒棒糖一起推出的Android TV。 You should not develop an Android TV app for pre-lollipop devices as they do not exist. 您不应该为棒棒糖之前的设备开发Android TV应用程序,因为它们不存在。

From the Wikipedia on Lollipop : "Alongside Lollipop, the [I/O keynote] presentation focused on a number of new Android-oriented platforms and technologies, including Android TV" 摘自Lollipop上Wikipedia :“ Alongside Lollipop,[I / O主题演讲]演示着重于许多新的面向Android的平台和技术,包括Android TV”

In addition, looking at Android Studio, you cannot create an ATV emulator for pre-lollipop. 此外,在Android Studio上,您无法为棒棒糖播放器创建ATV仿真器。

But for Amazon FireTV and FireTV Stick You can provide the promotional image during application's submission process, or alternatively update the metadata for an already submitted app. 但是对于Amazon FireTV和FireTV Stick,您可以在应用程序的提交过程中提供促销图像,或者为已提交的应用程序更新元数据。 For that go into your app's detail's, switch to the 'Images & Multimedia' tab, click 'Edit' and next to 'Promotional image (Recommended) 1024 x 500px (landscape only) PNG or JPG' upload an image that can be used during promotions. 为此,进入您的应用程序的详细信息,切换到“图像和多媒体”标签,点击“编辑”,然后在“促销图片(推荐)1024 x 500px(仅限横向)PNG或JPG”旁边上传可在促销活动。 After that it will show in place of Square ICON for more detail go through this link . 之后,它将显示在Square ICON处,以获取更多详细信息,请通过此链接

Android Studio TV模拟器选项的屏幕截图

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

相关问题 Android - 应用程序在Pre-Lollipop设备上崩溃 - Android - App crashes on Pre-Lollipop devices 在Lollipop前设备上跟踪Android上的每个应用程序使用情况 - Track per app usage on android on pre-Lollipop devices 棒棒糖之前的设备上的Android CardView问题 - Android CardView issue on pre-lollipop devices 预备棒棒糖设备上的Android setBackgroundTintList - Android setBackgroundTintList on pre-lollipop devices Android - 在Lollipop前设备上设置ProgressBar - Android - Tinting ProgressBar on pre-Lollipop devices 无法理解如何使用Theme.AppCompat为前Lollipop设备设置Android应用程序样式 - Can't understand how to style Android app for pre-Lollipop devices using Theme.AppCompat 如何在Pre-Lollipop设备的android中显示SnackBar? - How to show SnackBar In android for Pre-Lollipop Device? Android支持库FloatingActionButton - 在棒棒糖前设备上填充? - Android support library FloatingActionButton - padding on pre-lollipop devices? Android - 以编程方式更改pre-lollipop设备上的状态栏颜色 - Android - Change status bar color on pre-lollipop devices programatically android中是否有一种方法可以在棒棒糖之前的设备中的viewpager中在imageview上方显示textview? - Is there a way in android to show a textview above the imageview in a viewpager in pre-lollipop devices?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM