2013-12-16 40 views
0

我有這個奇怪的問題,Android 4.3文本行從文本視圖中消失,當文本長於和滾動高於'match_parent高度'。任何人注意到這一點,並找到了解決辦法?最後一行可見將顯示,但是當滾動一下時它會消失。Android 4.3在文本視圖中閃爍的文本行(滾動視圖內)

這裏是我的佈局:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:tools="http://schemas.android.com/tools" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:background="@drawable/nowback" 
android:id="@+id/view1" 
tools:context=".MainActivity$DummySectionFragment" > 

<ScrollView 
    android:id="@+id/scrollView1" 
    android:layout_margin="20dp" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:layout_alignParentLeft="true" 
    android:layout_alignParentRight="true" 
    android:layout_alignParentBottom="true" > 

<TextView 
    android:id="@+id/section_tekst" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:alpha="0.9" 
    android:background="#ffffff" 
    android:padding="20dp" 
    android:textSize="@dimen/font_size" 
    android:typeface="serif" 
    android:visibility="invisible" /> 

</ScrollView> 

回答

0

當沒有線將在文本視圖中增加那麼它會開始閃爍。所以請在文本視圖中修復任何一行,或者在特定時間刪除任何行。

1

問題在於textview中的「alpha」組件。我有同樣的問題,但在ViewContainer中包含textview,如果我設置alpha小於1.0,它們都會閃爍。