线性布局(LinearLayout)的XML

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">

<TextView
android:id="@+id/label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2"
android:text="@string/hello" />

<Button
android:id="@+id/buuton1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5px"
android:layout_weight="1"
android:text="@string/button1name" />

</LinearLayout>

posted on 2014-11-19 20:19  Iitb  阅读(389)  评论(0)    收藏  举报

导航