Home | History | Annotate | Download | only in ui
      1 page.title= 
      2 parent.title= 
      3 parent.link=index.html
      4 @jd:body
      5 
      6 <div class="figure" style="margin:0">
      7   <img src="{@docRoot}images/ui/ui-controls.png" alt="" style="margin:0" />
      8 </div>
      9 
     10 <p>        . 
     11 Android ,  ,  , ,  ,    
     12 UI       .</p>
     13 
     14 <p>UI     <a href="{@docRoot}guide/topics/ui/declaring-layout.html">XML </a> XML     . 
     15         .</p>
     16 
     17 <pre style="clear:right">
     18 &lt;?xml version="1.0" encoding="utf-8"?>
     19 &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     20     android:layout_width="fill_parent"
     21     android:layout_height="fill_parent"
     22     android:orientation="horizontal">
     23     &lt;EditText android:id="@+id/edit_message"
     24         android:layout_weight="1"
     25         android:layout_width="0dp"
     26         android:layout_height="wrap_content"
     27         android:hint="@string/edit_message" />
     28     &lt;Button android:id="@+id/button_send"
     29         android:layout_width="wrap_content"
     30         android:layout_height="wrap_content"
     31         android:text="@string/button_send"
     32         android:onClick="sendMessage" />
     33 &lt;/LinearLayout>
     34 </pre>
     35 
     36 <p>      ,         
     37     .</p>
     38 
     39 
     40 <h2 id="CommonControls"> </h2>
     41 <p>           .      
     42      .</p>
     43 
     44 <p class="note"><strong>:</strong> Android         .
     45      {@link android.widget}  . 
     46       ,  <a href="{@docRoot}guide/topics/ui/custom-components.html">   </a>   .</p>
     47 
     48 <table>
     49     <tr>
     50         <th scope="col"> </th>
     51         <th scope="col"></th>
     52 	<th scope="col"> </th>
     53     </tr>
     54     <tr>
     55         <td><a href="controls/button.html"></a></td>
     56         <td>        .</td>
     57 	<td>{@link android.widget.Button Button} </td>
     58     </tr>
     59     <tr>
     60         <td><a href="controls/text.html"> </a></td>
     61         <td>   . <code>AutoCompleteTextView</code>            .</td>
     62 	<td>{@link android.widget.EditText EditText}, {@link android.widget.AutoCompleteTextView}</td>
     63     </tr>
     64     <tr>
     65         <td><a href="controls/checkbox.html"></a></td>
     66         <td>    / .         .      .</td>
     67 	<td>{@link android.widget.CheckBox CheckBox} </td>
     68     </tr>
     69     <tr>
     70         <td><a href="controls/radiobutton.html"> </a></td>
     71         <td> ,         .</td>
     72 	<td>{@link android.widget.RadioGroup RadioGroup} 
     73 	<br>{@link android.widget.RadioButton RadioButton} </td>
     74     </tr>
     75     <tr>
     76         <td><a href="controls/togglebutton.html" style="white-space:nowrap"> </a></td>
     77         <td>   / .</td>
     78 	<td>{@link android.widget.ToggleButton ToggleButton} </td>
     79     </tr>
     80     <tr>
     81         <td><a href="controls/spinner.html"></a></td>
     82         <td> ,          .</td>
     83 	<td>{@link android.widget.Spinner Spinner} </td>
     84     </tr>
     85     <tr>
     86         <td><a href="controls/pickers.html"></a></td>
     87         <td>  , /              . (, , )   <code>DatePicker</code>&gt;   ,  (, , /)    <code>TimePicker</code>   .        .</td>
     88 	<td>{@link android.widget.DatePicker}, {@link android.widget.TimePicker}</td>
     89     </tr>
     90 </table>
     91