android tv-Building TV Games
来源:互联网 发布:人工智能人脸识别股票 编辑:程序博客网 时间:2024/04/28 11:05
The television screen presents a number of considerations that may be new to mobile game developers. These areas include its large size, its control scheme, and the fact that all players are viewing it simultaneously.
A TV is always sideways: You can’t turn it, and there is no portrait orientation. Always design your TV games to be displayed in landscape mode.
Not all game controllers provide Start, Search, or Menu buttons. Be sure your UI does not depend upon the use of these buttons.
The Android TV home screen displays games in a separate row from regular apps. To make your game appear in the list of games, set the android:isGame
attribute to "true"
in your app manifest's <application>
tag. For example:
<application ... android:isGame="true" ...>
Games controllers may not be available or active for users of a TV device. In order to properly inform users that your game supports a game controller, you must include the following entry in your app manifest:
<uses-feature android:name="android.hardware.gamepad" android:required="false"/>
Note: When specifying android:hardware:gamepad
support, do not set the android:required
attribute to"true"
. If you do this, users won’t be able to install your app on TV devices.
Provide a consistent and obvious UI element that lets the user exit the game gracefully. This element should be accessible with the D-pad navigation buttons. Do this instead of relying on the Home button to provide an exit, as that is not consistent nor reliable across different controllers.
Do not enable web browsing in games for Android TV. Android TV does not support a web browser.
Note: You can use the WebView
class for logins to services like Google+ and Facebook.
- android tv-Building TV Games
- Android TV-Building Layouts for TV
- Android TV -1- Building TV Apps
- Android TV - 1.3 Building Layouts for TV
- Android TV -2- Building TV Playback Apps
- Android TV -5- Building TV Channels
- Android TV-Building TV Apps,Get Started with TV Apps
- android TV-Building TV Channels,Developing a TV Input Service
- Android TV -2.3- Building a Details View
- Android TV
- Android TV
- TV
- TV
- Android TV-Handling TV Hardware
- Android TV-Creating TV Navigation
- android TV-Recommending TV Content,
- android tv-TV Apps Checklist
- Android TV 官方教程简读1-Building Apps for TV
- Mac 命令
- 记一次驴唇不对马嘴的DIY之旅(十)
- Activity生命周期和启动模式 - Android开发艺术探索读书笔记(第一章)
- android 微信图片选择器
- 最详细eclipse汉化插件安装教程
- android tv-Building TV Games
- Java IO:SocketChannel和Selector在ZooKeeper中应用
- mysql数据库操作字段的一些方法
- 【Codeforces Good Bye 2015】D. New Year and Ancient Prophecy
- SVN 环境搭建
- bzoj1008 [HNOI2008]越狱
- win7系统桌面图标左下角全部出现蓝色问号,如何使其恢复?
- 不知不觉很久不写博客了
- android 自定义控件属性(TypedArray以及attrs解释)