1 page.title=TV 2 page.tags=tv, leanback, recyclerview 3 4 trainingnavtop=true 5 startpage=true 6 7 @jd:body 8 9 <div id="tb-wrapper"> 10 <div id="tb"> 11 <h2></h2> 12 <ol> 13 <li><a href="#dev-project">TV </a></li> 14 <li><a href="#tv-libraries">TV </a></li> 15 <li><a href="#build-it">TV </a></li> 16 <li><a href="#run">TV </a></li> 17 </ol> 18 <h2></h2> 19 <ol> 20 <li><a href="{@docRoot}design/tv/index.html">TV </a></li> 21 <li><a href="{@docRoot}training/tv/start/layouts.html">TV </a></li> 22 </ol> 23 </div> 24 </div> 25 26 <p> 27 TV Android TV TV 28 </p> 29 30 <p class="note"> 31 <strong>:</strong>Google Play Android TV <a href="{@docRoot}distribute/essentials/quality/tv.html">TV </a> 32 </p> 33 34 <p> 35 TV TV 36 </p> 37 38 39 <h2 id="dev-project">TV </h2> 40 41 <p> 42 TV TV 43 </p> 44 45 <ul> 46 <li><strong>TV </strong> - TV </li> 47 <li><strong>TV </strong> - TV <a href="#tv-libraries"> </a></li> 48 </ul> 49 50 51 <h3 id="prerequisites"></h3> 52 53 <p>TV :</p> 54 55 <ul> 56 <li><strong><a href="{@docRoot}sdk/installing/adding-packages.html#GetTools">SDK 24.0.0 </a></strong> 57 <br/> SDK TV 58 </li> 59 <li><strong><a href="{@docRoot}sdk/installing/adding-packages.html#GetTools">SDK Android 5.0API 21</a></strong> 60 <br/> TV API 61 </li> 62 <li><strong><a href="{@docRoot}sdk/installing/create-project.html"></a></strong> 63 <br/> TV API Android 5.0API 21 64 </li> 65 </ul> 66 67 68 <h3 id="tv-activity">TV </h3> 69 70 <p>TV {@link android.content.Intent#CATEGORY_LEANBACK_LAUNCHER} TV TV Google Play TV TV </p> 71 72 <p> </p> 73 74 <pre> 75 <application 76 android:banner="@drawable/banner" > 77 ... 78 <activity 79 android:name="com.example.android.MainActivity" 80 android:label="@string/app_name" > 81 82 <intent-filter> 83 <action android:name="android.intent.action.MAIN" /> 84 <category android:name="android.intent.category.LAUNCHER" /> 85 </intent-filter> 86 </activity> 87 88 <activity 89 android:name="com.example.android.<strong>TvActivity</strong>" 90 android:label="@string/app_name" 91 android:theme="@style/Theme.Leanback"> 92 93 <intent-filter> 94 <action android:name="android.intent.action.MAIN" /> 95 <category android:name="<strong>android.intent.category.LEANBACK_LAUNCHER</strong>" /> 96 </intent-filter> 97 98 </activity> 99 </application> 100 </pre> 101 102 <p> 103 2 TV 104 </p> 105 106 <p class="caution"> 107 <strong>:</strong> {@link android.content.Intent#CATEGORY_LEANBACK_LAUNCHER} TV Google Play TV TV 108 </p> 109 110 <p> 111 TV TV TV TV TV <a href="{@docRoot}design/tv/index.html">TV </a>TV <a href="{@docRoot}training/tv/start/layouts.html">TV </a> 112 </p> 113 114 115 <h3 id="no-touchscreen"></h3> 116 117 <p> 118 TV TV {@code android.hardware.touchscreen} TV Google Play TV 119 </p> 120 121 <pre> 122 <manifest> 123 <strong><uses-feature android:name="android.hardware.touchscreen" 124 android:required="false" /></strong> 125 ... 126 </manifest> 127 </pre> 128 129 <p class="caution"> 130 <strong>:</strong> TV Google Play 131 </p> 132 133 <h3 id="banner"> </h3> 134 135 <p> 136 Leanback 137 </p> 138 139 <pre> 140 <application 141 ... 142 android:banner="@drawable/banner" > 143 144 ... 145 </application> 146 </pre> 147 148 <p> 149 <a href="{@docRoot}guide/topics/manifest/application-element.html#banner">{@code android:banner}</a> <a href="{@docRoot}guide/topics/manifest/application.html"><code><application></code></a> <a href="{@docRoot}guide/topics/manifest/activity-element.html"><code><activity></code></a> 150 </p> 151 152 <p> 153 TV UI <a href="{@docRoot}design/tv/patterns.html#banner"></a> 154 </p> 155 156 <h2 id="tv-libraries">TV </h3> 157 158 <p> 159 Android SDK TV TV API {@code <sdk>/extras/android/support/} 160 </p> 161 162 <ul> 163 <li><a href="{@docRoot}tools/support-library/features.html#v17-leanback"> <strong>v17 leanback </strong></a> - TV 164 </li> 165 <li><a href="{@docRoot}tools/support-library/features.html#v7-recyclerview"> <strong>v7 recyclerview </strong></a> - v17 leanback 166 </li> 167 <li><a href="{@docRoot}tools/support-library/features.html#v7-cardview"> <strong>v7 cardview </strong></a> - 168 </li> 169 </ul> 170 171 <p class="note"> 172 <strong>:</strong> TV 173 </p> 174 175 <p> 176 v17 leanback <a href="{@docRoot}tools/support-library/features.html#v4">v4 </a> leanback 177 </p> 178 179 <ul> 180 <li>v4 </li> 181 <li>v7 recyclerview </li> 182 <li>v17 leanback </li> 183 </ul> 184 185 <p> 186 v17 leanback <a href="{@docRoot}tools/support-library/setup.html#libs-with-res"> </a> 187 </p> 188 189 190 <h2 id="build-it">TV </h2> 191 192 <p>TV TV <ul> 193 <li> 194 <a href="{@docRoot}training/tv/playback/index.html">TV </a> - TV Android TV 195 </li> 196 <li> 197 <a href="{@docRoot}training/tv/search/index.html">TV </a> - TV 198 </li> 199 <li> 200 <a href="{@docRoot}training/tv/games/index.html">TV </a> - TV TV 201 </li> 202 </ul> 203 204 205 <h2 id="run">TV </h2> 206 207 <p> 208 Android SDK AVD Manager TV 209 </p> 210 211 <p> TV :</p> 212 213 <ol> 214 <li>AVD Manager <a href="{@docRoot}tools/help/avd-manager.html">AVD Manager</a> </li> 215 <li>[AVD Manager] [<strong></strong>] </li> 216 <li>Android TV [<strong>AVD </strong>] </li> 217 <li>[<strong>OK</strong>] AVD <p class="note"> 218 <strong>:</strong>TV [<strong> GPU </strong>] <a href="{@docRoot}tools/devices/emulator.html#acceleration"></a> 219 </p> 220 </li> 221 </ol> 222 223 <p> TV :</p> 224 225 <ol> 226 <li> TV </li> 227 <li> TV </li> 228 </ol> 229 230 <p> 231 <a href="{@docRoot}tools/devices/emulator.html"></a>Android Studio <a href="{@docRoot}sdk/installing/studio-debug.html">Android Studio </a>ADT Eclipse <a href="{@docRoot}tools/building/building-eclipse.html">Eclipse ADT </a> 232 </p> 233