1
我有如下的佈局......Android:在文本溢出時,轉到新行?
<LinearLayout android:id="@+id/linearLayout1" android:layout_width="match_parent" android:orientation="horizontal" android:layout_height="wrap_content">
<ImageView android:id="@+id/Pic" android:src="@drawable/icon" android:layout_width="25dip" android:layout_height="25dip"></ImageView>
<LinearLayout android:id="@+id/linearLayout2" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content">
<TextView android:textColor="#5379E2" android:text="Item" android:id="@+id/Title" android:layout_width="wrap_content" android:layout_height="match_parent"></TextView>
<TextView android:text="" android:textColor="#000000" android:id="@+id/Description" android:layout_width="wrap_content" android:layout_height="match_parent"></TextView>
<TextView android:text="" android:textColor="#000000" android:id="@+id/url" android:layout_width="wrap_content" android:layout_height="match_parent"></TextView>
</LinearLayout>
</LinearLayout>
每當文本變得太大,單線它是在它溢出像這樣..
This is the first line and when it gets too big it does
t
h
i
s
但是,我想喜歡它是這樣的..
This is the first line and when it gets too big it should
do this.
我將如何實現這一目標?
編輯
所以它的出現這種情況正在發生,因爲這三個Textviews的佔用了,像這樣的空間..
|------|-----|-----|
| | | |
|______|_____|_____|
所以,當它溢出時,下降到它的各自的TextLine 。問題是這不是我想要的。我需要3個文本看起來組成一個句子。我不僅僅使用了一個textview,因爲我想以不同的方式爲每個textview着色。
是的,沒有解決我的問題。此外,該電話已折舊。 – Skizit 2011-04-28 11:37:31