[英]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处,以获取更多详细信息,请通过此链接 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.