2012-10-14 10 views
1

레이아웃은이 SDK (16)를 사용하여 구축에만 진저 브레드에 차단하고 내가 테스트 한 그들은 ICS에서 잘 작동하고 JB하지만, GB는 다음 문제가 확인 : 아래의 코드에서안드로이드 텍스트 뷰의 텍스트 내 응용 프로그램에서

을 , 난 단지 텍스트로 간단한 레이아웃을 만들려고합니다. 텍스트는 다음 줄로 진행하는 대신 첫 번째 줄 끝에 진저 브레드에서 잘린 상태로 유지됩니다. 나는 singeLine을 false로 설정하고, maxLines, marquee, layoutWeight, layoutHeight 및 layoutWidth를 상상할 수있는 모든 조합으로 변경하려고 시도했습니다.이 문제는 정말 당황 스럽습니다.

코드 : - : 사전에

Failed to find style 'scrollViewStyle' in current theme 
Failed to find style 'textViewStyle' in current theme 
android.content.res.Resources$NotFoundException 

덕분에 내가 진저 브레드에 레이아웃의 테마를 변경하는 경우

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="fill_parent" 
android:layout_height="wrap_content"> 

<LinearLayout 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:orientation="vertical"> 

<TextView 
    android:id="@+id/textView7" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:text="Text keeps overflowing" 
    android:textAppearance="?android:attr/textAppearanceMedium" 
    android:textColor="#33B5E5" 
    android:paddingTop="6dp" 
    /> 

<TextView 
    android:id="@+id/textView8" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:text="Text gets cut off when I input a long string like this one" 
    android:textAppearance="?android:attr/textAppearanceMedium" 
    android:textColor="#FFFFFF" 
    /> 

</LinearLayout> 

</ScrollView> 

또한, 나는 오류가 발생합니다.

답변

2

직접 고쳤습니다. 이 일어나는 이유를 알아하지만 난 TextViews의 코드에 다음 줄을 추가하여 고정 할 수 없습니다 : - 당신이로 긴 문자열을 넣을 경우

관심 부족
 android:ellipsize="none" 
     android:maxLines="10" 
     android:scrollHorizontally="false" 
+0

, 당신은 여전히이 문제를 얻을 않는' setText (CharSequence)'메서드? 같은 문제가 있지만 리소스 문자열에서 채울 때만 나타납니다. http://stackoverflow.com/questions/13879505/textview-only-displaying-the-first-four-lines-of-a-resource-string –

+1

아 ... 불행히도이 솔루션은 나를 위해 작동하지 않았다 (비록 내가 오전에 진저 브레드) 그래서 뭔가 다른 것 같아요. –

관련 문제