能否請你告訴我如何使textView
各地imageview
這樣如何對齊的TextView與周圍文本的固定線路的ImageView
_____
| |
|_____| Some Dummy text,Some Dummy text,
Some Dummy text,Some Dummy text,S...more
我想限制我的TextView僅2線和結束時我會有一個TextView或Button稱爲更多的文本,將彈出打開。
是否有可能創建類似這樣的東西?
能否請你告訴我如何使textView
各地imageview
這樣如何對齊的TextView與周圍文本的固定線路的ImageView
_____
| |
|_____| Some Dummy text,Some Dummy text,
Some Dummy text,Some Dummy text,S...more
我想限制我的TextView僅2線和結束時我會有一個TextView或Button稱爲更多的文本,將彈出打開。
是否有可能創建類似這樣的東西?
這絕對有可能。您需要使用RelativeLayout,您可以在其中放置每個視圖並根據需要對齊它們。
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ImageButton
android:id="@+id/imageButton1"
android:layout_width="wrap_content"
android:layout_height="100dp"
android:src="@drawable/pic7"
android:text="image1" />
<TextView
android:id="@+id/text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="Textview1" />
</LinearLayout>
我使用相對佈局和我存檔反對這種那些2行文字的看法,但我不能創建在文本到底有多視圖。 – 2012-07-19 09:15:43