0
我想在兩個圖像上面放置一個文字。我正在使用下面給出的佈局,但文本不在頂部。上面的兩個圖像文字
任何幫助,請 -
<?xml version="1.0" encoding="utf-8"?>
<ScrollView android:id="@+id/ScrollView01"
android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background="@drawable/layout"
android:gravity="center">
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:gravity="top">
<TableRow android:weightSum="100">
<TextView android:id="@+id/imageText" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:gravity="top"
android:textStyle="bold" android:typeface="sans" android:text="TWO"
android:layout_weight="100"></TextView>
</TableRow>
</TableLayout>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableRow android:weightSum="100">
<ImageView android:id="@+id/image1" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/girrafe"
android:visibility="visible" android:gravity="center"
android:layout_weight="50" />
<ImageView android:id="@+id/image1" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/girrafe"
android:layout_weight="50" />
</TableRow>
</TableLayout>
</LinearLayout>
</ScrollView>
umm..i想在中間的文字和兩個所顯示的圖像 – nasaa 2011-05-15 12:45:55
我已編輯它 – George 2011-05-15 13:10:12