主Activity的布局文件xml
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/widget33" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/back" android:orientation="vertical" > <TextView android:id="@+id/widget34" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> <LinearLayout android:id="@+id/widget36" android:layout_width="fill_parent" android:layout_height="40px" android:background="@drawable/bt_group_back" > <Button android:id="@+id/button_Last" android:layout_width="64px" android:layout_height="fill_parent" android:background="@drawable/ic_cmd_last" /> <Button android:id="@+id/button_Replay" android:layout_width="64px" android:layout_height="fill_parent" android:background="@drawable/ic_cmd_replay" /> <Button android:id="@+id/button_Next" android:layout_width="64px" android:layout_height="fill_parent" android:background="@drawable/ic_cmd_next" /> <Button android:id="@+id/button_List" android:layout_width="64px" android:layout_height="fill_parent" android:background="@drawable/ic_cmd_list" /> <Button android:id="@+id/button_Exit" android:layout_width="65sp" android:layout_height="fill_parent" android:background="@drawable/ic_cmd_power" /> </LinearLayout> <ImageButton android:id="@+id/Button01" android:layout_width="90sp" android:layout_height="80sp" android:layout_marginLeft="100sp" android:layout_marginTop="80sp" android:background="@drawable/favorite" android:contentDescription="五角星图片" /> </LinearLayout>