android:tv直播
Creating a great Android TV app is about getting the basics right, customizing the Leanback library to get the look and feel you want, integrating with Android TV features so people can discover and control your content, and, of course, delivering great content. The latter I’ll leave you to figure out, but for the first 3, this post will get you heading in the right direction. To kick off I want to briefly look at how technology is changing the home and living room.
创建一个出色的Android TV应用程序涉及正确的基础知识,自定义Leanback库以获取所需的外观和感觉,与Android TV功能集成以便人们可以发现和控制您的内容,当然还可以提供出色的内容。 后者我会让你弄清楚,但对于前三个,这篇文章将使您朝正确的方向前进。 首先,我想简要介绍一下技术如何改变家庭和客厅。
现代家庭和客厅 (The modern home and living room)
Technology has changed how we interact with the home. Here at Google, we believe that the next leap forward in technology for the home will come from the intersection of hardware, software, and AI. We want people’s homes to be smarter, more helpful, and work for them.
科技改变了我们与家庭互动的方式。 在Google,我们相信家庭技术的下一个飞跃将来自硬件,软件和AI的交集。 我们希望人们的房屋更智能,更有用,并为他们工作。
This vision centers around Google Assistant, through its ability to bring together search and media contact points. And when we’re talking about media, there is no better place to consume media than the biggest screen in the home: the TV. Android TV is Google’s TV platform that brings media, games, and music together in one place.
通过将搜索和媒体联系点结合在一起的能力,这一愿景围绕Google Assistant展开。 当我们谈论媒体时,没有比家里最大的屏幕电视更好的消费媒体的地方了。 Android TV是Google的电视平台,可将媒体,游戏和音乐集中在一处。
Android TV is seeing great momentum: 7 of the 10 top smart TV manufacturers are shipping TVs with Android TV and over 160 pay TV operators are powering set top boxes with Android TV. This momentum extends to developers as well: there are around 7,000 apps on Google Play for Android TV, over 1,000 of which are from streaming content providers.
Android TV势头强劲:10家顶级智能电视制造商中有7家正在出货带Android TV的电视,而超过160家付费电视运营商正在为Android TV的机顶盒提供动力。 这种势头也扩展到了开发人员:用于Android TV的Google Play上大约有7,000个应用,其中有1,000多个来自流内容提供商。
是什么使Android应用成为Android TV应用? (What makes an Android app an Android TV app?)
Being Android means that you can reuse all of your skills as an Android developer to create an Android TV app, but what makes an Android app a TV app?
成为Android意味着您可以复用自己作为Android开发人员的所有技能来创建Android TV应用程序,但是什么使Android应用程序成为TV应用程序呢?
I’m going to start with the basics of the manifest file. Some of this may seem really basic but it is missed by many apps.
我将从清单文件的基础开始。 其中一些可能看起来真的很基础,但是许多应用程序都忽略了它。
First, you declare that you won’t be using a touch screen because people interact with their TVs through the remote control.
首先,您声明您将不会使用触摸屏,因为人们可以通过遥控器与电视进行互动。
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
讯享网
Next, you declare that the app uses Leanback. This doesn’t specifically refer to the Leanback library: Leanback is a generic term used to define the experience of watching TV and experience where someone uses a device at a distance, in a Leanback position. Using this ensures that the app will only go on TV Google Play Store and not on any other surface like mobile, tablet, etc.
接下来,您声明该应用程序使用Leanback。 这并不是专门指Leanback库:Leanback是一个通用术语,用于定义观看电视的体验以及有人在Leanback位置远距离使用设备的体验。 使用此功能可确保该应用仅能在Google Play商店的电视上播放,而不能在手机,平板电脑等任何其他设备上播放。
讯享网<uses-feature android:name="android.software.leanback" android:required="true" />
Now you move on to declare the app’s banner.
现在,继续声明应用程序的横幅。
<application ... android:banner="@drawable/my_banner">
Before concluding by declaring the Android TV intent, which is not the main intent.
在结束之前,先声明Android TV意图,这不是主要意图。
讯享网<activity ... > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LEANBACK_LAUNCHER" /> </intent-filter> </activity> </manifest>
横幅 (The banner)
Your app’s banner is how people find it in the Android TV interface. Following best practices, your app’s banner should look something like this:
您的应用横幅是人们在Android TV界面中找到它的方式。 按照**做法,您应用的横幅应如下所示:

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/60878.html