1 page.title= 2 @jd:body 3 4 5 <p> Android {@link android.view.View} 6 {@link android.view.ViewGroup}. {@link android.view.View} 7 , . {@link android.view.ViewGroup} 8 {@link android.view.View} ( {@link android.view.ViewGroup}) 9 .</p> 10 11 <p>Android {@link android.view.View} {@link 12 android.view.ViewGroup}, ( 13 ) ( ).</p> 14 15 16 <h2 id="Layout"> </h2> 17 18 <p> {@link 19 android.view.View} {@link android.view.ViewGroup}, 1. 20 , , 21 , 22 . , 23 ( , ).</p> 24 25 <img src="{@docRoot}images/viewgroup.png" alt="" /> 26 <p class="img-caption"><strong> 1</strong>. , 27 .</p> 28 29 <p> , {@link android.view.View} 30 , XML. 31 XML , HTML.</p> 32 33 <p> XML Android, . , 34 <code><TextView></code> {@link android.widget.TextView} , 35 <code><LinearLayout></code> {@link android.widget.LinearLayout} 36 . </p> 37 38 <p>, :</p> 39 <pre> 40 <?xml version="1.0" encoding="utf-8"?> 41 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 42 android:layout_width="fill_parent" 43 android:layout_height="fill_parent" 44 android:orientation="vertical" > 45 <TextView android:id="@+id/text" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:text="I am a TextView" /> 49 <Button android:id="@+id/button" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:text="I am a Button" /> 53 </LinearLayout> 54 </pre> 55 56 <p> Android 57 , , 58 .</p> 59 60 <p> . <a href="declaring-layout.html"> 61 XML</a>. 62 63 64 <h2 id="UIComponents"> </h2> 65 66 <p> {@link android.view.View} {@link 67 android.view.ViewGroup}. Android , 68 , . 69 API, , <a href="{@docRoot}guide/topics/ui/actionbar.html"> </a>, <a href="{@docRoot}guide/topics/ui/dialogs.html"></a> <a href="{@docRoot}guide/topics/ui/notifiers/notifications.html"> </a>.</p> 70 71 72