2010-08-05 60 views
2

我有一個簡單的TextView,顯示我已經刮過的一些文本。儘管我想要顯示的文本比屏幕的寬度長得多,但它既不包含也不給我一個滾動條。它只是停止。TextView內容不包裹或滾動

我的佈局配置如下:

<?xml version="1.0" encoding="utf-8"?> 
<TextView xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/displayFighterVerse" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:singleLine="false" 
    android:width="0dip" 
    android:inputType="textMultiLine" 
    android:text="Welcome to Fighter Verses. Please wait while we download the latest verse." 
    /> 

誰能幫我弄清楚這是爲什麼無法正常顯示?我錯過了什麼真正簡單的東西?

+0

什麼是你的父母?您應該包含更多的XML佈局,以便我們能夠提供幫助。 – CodeFusionMobile 2010-08-05 15:17:48

+0

這就是所有的XML。 – 2010-08-06 12:35:55

回答

0

將您的TextView一個ScrollView

+0

謝謝 - 我嘗試過,但沒有任何區別。 – 2010-08-06 12:40:03

+0

儘管仍然由ScollView包裝,請嘗試從TextView中刪除singleLine,width和inputType xml屬性。如果這也不起作用,請嘗試將layout_height更改爲fill_parent。 – Doge 2010-08-06 13:22:41

+0

謝謝 - 我也試過。還是相同的結果:-( – 2010-08-06 13:39:48

0

廣場內的滾動型內的LinearLayout內TextView的。

1

採取Editetext代替.. 設置背景顏色爲transarent 和setEditable假 將包裹以及滾動和看起來像一個TextView