这是我的代码:
问题是第二个LinearLayout中的图像按钮出现在屏幕右侧而不是底部 :(
如何解决这个问题?
最后,我想将一个图形(标志)放在右下角。
请注意,我是新手,仍在学习中...只是在示例中迷失了方向。
谢谢! Ryan
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/LinearLayout01"
android:background="@drawable/game_background"
android:weightSum="100"
android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<ScrollView android:id="@+id/ScrollView01" android:layout_weight="70"
android:layout_width="fill_parent" android:layout_height="228dp">
<LinearLayout android:layout_width="wrap_content"
android:layout_height="30px" android:id="@+id/LinearLayout02"
android:orientation="vertical">
<TextView android:layout_height="wrap_content" android:text="Version 0.0.0.1"
android:textAppearance="?android:attr/textAppearanceLarge"
android:layout_width="wrap_content" android:textColor="#000000"></TextView>
<TextView
android:text="Thanks for trying out the very first version of this program!\n\n"
android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#000000"></TextView>
<ImageButton android:id="@+id/imageButton1"
android:layout_height="wrap_content" android:layout_width="wrap_content"
android:src="@drawable/prefs_exit" android:onClick="exit_button"
android:background="#00000000"></ImageButton>
</LinearLayout>
</ScrollView>
<LinearLayout android:layout_width="fill_parent" android:layout_weight="30"
android:layout_height="fill_parent" android:id="@+id/LinearLayout02"
android:orientation="vertical">
<ImageButton android:id="@+id/imageButton1"
android:layout_height="wrap_content" android:layout_width="wrap_content"
android:src="@drawable/prefs_exit" android:onClick="exit_button"
android:background="#00000000"></ImageButton>
</LinearLayout>
</LinearLayout>
问题是第二个LinearLayout中的图像按钮出现在屏幕右侧而不是底部 :(
如何解决这个问题?
最后,我想将一个图形(标志)放在右下角。
请注意,我是新手,仍在学习中...只是在示例中迷失了方向。
谢谢! Ryan