Home | History | Annotate | Download | only in start
      1 page.title=TV 
      2 page.tags=tv
      3 trainingnavtop=true
      4 
      5 @jd:body
      6 
      7 <div id="tb-wrapper">
      8 <div id="tb">
      9   <h2></h2>
     10   <ol>
     11     <li><a href="#themes">TV  </a></li>
     12     <li><a href="#structure"> TV </a></li>
     13     <li><a href="#visibility"></a></li>
     14     <li><a href="#density-resources">TV  </a></li>
     15     <li><a href="#anti-patterns"></a></li>
     16     <li><a href="#large-bitmaps"></a></li>
     17   </ol>
     18   <h2></h2>
     19   <ol>
     20     <li><a href="{@docRoot}design/tv/index.html">Android  TV </a></li>
     21   </ol>
     22 </div>
     23 </div>
     24 
     25 <p>
     26   TV  10  Android   TV 
     27 </p>
     28 
     29 <p>
     30   TV 
     31 </p>
     32 
     33 <h2 id="themes">TV  </h2>
     34 
     35 <p>
     36   Android <a href="{@docRoot}guide/topics/ui/themes.html"></a>TV TV 
     37 </p>
     38 
     39 <h3 id="leanback-theme">Leanback </h3>
     40 
     41 <p>
     42   TV    <a href="{@docRoot}tools/support-library/features.html#v17-leanback">v17 leanback </a> {@code Theme.Leanback}  TV TV  TV  v17 leanback  TV 
     43 </p>
     44 
     45 <pre>
     46 &lt;activity
     47   android:name="com.example.android.TvActivity"
     48   android:label="&#64;string/app_name"
     49   <strong>android:theme="&#64;style/Theme.Leanback"</strong>&gt;
     50 </pre>
     51 
     52 
     53 <h3 id="notitle-theme">NoTitleBar </h3>
     54 
     55 <p>
     56     Android   TV v17 leanback TV  TV  
     57 </p>
     58 
     59 <pre>
     60 &lt;application&gt;
     61   ...
     62 
     63   &lt;activity
     64     android:name="com.example.android.TvActivity"
     65     android:label="&#64;string/app_name"
     66     <strong>android:theme="&#64;android:style/Theme.NoTitleBar"</strong>&gt;
     67     ...
     68 
     69   &lt;/activity&gt;
     70 &lt;/application&gt;
     71 </pre>
     72 
     73 
     74 <h2 id="structure"> TV </h2>
     75 
     76 <p>TV TV 
     77 </p>
     78 
     79 <ul>
     80   <li>TV </li>
     81   <li> </li>
     82   <li><a href="{@docRoot}guide/components/fragments.html"></a> UI {@link android.widget.GridView}   {@link android.widget.ListView} 
     83   </li>
     84   <li>{@link android.widget.RelativeLayout}  {@link android.widget.LinearLayout}   TV </li>
     85   <li> UI </li>
     86 </ul>
     87 
     88 
     89 <h3 id="overscan"></h3>
     90 
     91 <p>TV TV TV <em></em>
     92 </p>
     93 
     94 <p>
     95    10%   27dp 48dp TV  
     96 </p>
     97 
     98 <pre>
     99 &lt;?xml version="1.0" encoding="utf-8"?&gt;
    100 &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    101   android:id="@+id/base_layout"
    102   android:layout_width="match_parent"
    103   android:layout_height="match_parent"
    104   android:orientation="vertical"
    105   android:layout_marginTop="27dp"
    106   android:layout_marginLeft="48dp"
    107   android:layout_marginRight="48dp"
    108   android:layout_marginBottom="27dp" &gt;
    109 &lt;/LinearLayout&gt;
    110 </pre>
    111 
    112 <p class="caution">
    113   <strong>:</strong>{@link android.support.v17.leanback.app.BrowseFragment}  v17 leanback 
    114 </p>
    115 
    116 <h2 id="visibility"></h2>
    117 
    118 <p>
    119   TV   
    120 </p>
    121 
    122 <ul>
    123   <li></li>
    124   <li>TV </li>
    125   <li>  </li>
    126   <li> Android   <pre>
    127 &lt;TextView
    128       android:id="@+id/atext"
    129       android:layout_width="wrap_content"
    130       android:layout_height="wrap_content"
    131       android:gravity="center_vertical"
    132       android:singleLine="true"
    133       <strong>android:textAppearance="?android:attr/textAppearanceMedium"/&gt;</strong>
    134 </pre>
    135   </li>
    136   <li>  10 dip {@code wrap_content} </li>
    137 </ul>
    138 
    139 <p>
    140    <a href="{@docRoot}guide/practices/screens_support.html"></a>
    141 </p>
    142 
    143 <h2 id="density-resources">TV  </h2>
    144 
    145 <p> TV  720p1080i1080p TV  19201080  Android   720p  </p>
    146 
    147 <p>
    148    <a href="{@docRoot}tools/help/draw9patch.html">9patch </a> 
    149 </p>
    150 
    151 <p>
    152   <a href="{@docRoot}training/multiscreen/index.html"></a>
    153 </p>
    154 
    155 
    156 <h2 id="anti-patterns"></h2>
    157 
    158 <p>
    159   TV  TV <em></em> 
    160 </p>
    161 
    162 <ul>
    163   <li><strong></strong>  Android  TV TV </li>
    164   <li><strong>ActionBar</strong> -  TV TV    </li>
    165   <li><strong>ViewPager</strong> - TV </li>
    166 </ul>
    167 
    168 <p>TV <a href="{@docRoot}design/tv/index.html">TV </a></p>
    169 
    170 
    171 <h2 id="large-bitmaps"></h2>
    172 
    173 <p> Android TV </p>
    174 
    175 <ul>
    176   <li>{@link android.widget.GridView}  {@link android.widget.Gallery}  {@link android.widget.Adapter#getView getView()}  {@link android.widget.Adapter} 
    177   </li>
    178   <li>{@link android.graphics.Bitmap#recycle()}  {@link android.graphics.Bitmap} 
    179   </li>
    180   <li> {@link java.lang.ref.WeakReference} {@link android.graphics.Bitmap}  {@link java.util.Collection} 
    181   </li>
    182   <li>{@link android.os.AsyncTask}    
    183   </li>
    184   <li>
    185   </li>
    186 </ul>
    187 
    188 <p>
    189   <a href="{@docRoot}training/displaying-bitmaps/index.html"></a>
    190 </p>
    191