1 page.title=UI 2 @jd:body 3 4 5 <p>Android {@link android.view.View} {@link android.view.ViewGroup} 6 {@link android.view.View} 7 {@link android.view.ViewGroup} {@link android.view.View} {@link android.view.ViewGroup} 8 9 </p> 10 11 <p>Android {@link android.view.View} {@link android.view.ViewGroup} 12 13 </p> 14 15 16 <h2 id="Layout"> </h2> 17 18 <p> 1 {@link 19 android.view.View} {@link android.view.ViewGroup} UI 20 21 22 23 </p> 24 25 <img src="{@docRoot}images/viewgroup.png" alt="" /> 26 <p class="img-caption"><strong> 1.</strong> UI 27 </p> 28 29 <p> {@link android.view.View} XML XML HTML 30 31 </p> 32 33 <p> XML Android <code><TextView></code> UI {@link android.widget.TextView} <code><LinearLayout></code> {@link android.widget.LinearLayout} 34 35 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>UI <a href="declaring-layout.html">XML </a> 61 62 63 64 <h2 id="UIComponents"> </h2> 65 66 <p>{@link android.view.View} {@link android.view.ViewGroup} UI 67 Android UI 68 UI 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> 69 </p> 70 71 72