综合练习题
1.编程完成以下界面设计。要求:项目命名为“ test01”,完成界面编码和运行测试。
<LinearLayout xmlns:android ="http://schemas.android.com/apk/res/android"
xmlns:tools ="http://schemas.android.com/tools"
android:layout_width ="fill_parent"
android:layout_height ="fill_parent"
android:orientation ="vertical"
android:gravity ="center"
android:paddingBottom ="@dimen/activity_vertical_margin"
android:paddingLeft ="@dimen/activity_horizontal_margin"
android:paddingRight ="@dimen/activity_horizontal_margin"
android:paddingTop ="@dimen/activity_vertical_margin"
tools:context ="com.example.test01.MainActivity$PlaceholderFragment" >
<TextView
android:id ="@+id/TextView01"
android:layout_width ="wrap_content"
android:layout_height ="wrap_content"
android:padding ="10dp"
android:textSize ="20sp"
android:text =" 杜鹃不啼,如何让它啼? " />
<Button
android:id ="@+id/Button01"
android:layout_width ="wrap_content"
android:layout_height ="wrap_content"
android:textSize ="20sp"
android:text =" 杀之不足惜! " />
<Button
android:id ="@+id/Button02"
android:layout_width ="wrap_content"
android:layout_height ="wrap_content"
android:textSize ="20sp"
android:text =" 诱之自然啼! " />
<Button
android:id ="@+id/Button03"
android:layout_width ="wrap_content"
android:layout_height ="wrap_content"
android:textSize ="20sp"
android:text ="
待之莫须急!
" />
</ LinearLayout >