2015-01-16 9 views
0

이미지에 텍스트를 넣어야합니다. 텍스트가 너무 길면 줄 바꿈을해야합니다. RelativeLayout을 다음과 같이 사용합니다 :TextView가 줄 바꿈을하지 않습니다.

Android 4.1.2에서는 예상대로 작동하지만 4.3 및 4.4에서는 텍스트가 줄 바꿈되지 않습니다. 나는 액션 바를 지원하기 위해 커스텀 스타일을 사용한다고 언급해야한다.

<style name="MyActionBarTheme" 
    parent="@style/Theme.AppCompat"> 
    <item name="android:actionBarStyle">@style/MyActionBar</item> 
    <item name="actionBarStyle">@style/MyActionBar</item> 
</style> 
<style name="MyActionBar" 
    parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse"> 
</style> 

내가 성공하지

android:singleLine="false" 
android:ellipsize="none" 
android:maxLines="100" 
android:scrollHorizontally="false" 

설정을 시도했습니다. 이미지에 여러 줄 문자를 표시하는 다른 방법이 있습니까? android:layout_width="wrap_content"android:layout_width="match_parent"

+0

TextView에 고정 폭을 사용하십시오. –

+0

textview에 width = match_parent를 시도해 보셨습니까? – Mann

+0

나는 android와 TextView를 시도했다 : layout_width = "match_parent" –

답변

-1

시도.

+0

나는 그것을 시도했다. 작동하지 않습니다. –

-1

android:layout_height="fill_parent"을 시도 변경

+0

나는 시도했다. 문제를 해결하지는 못합니다. –

+0

그리고 ihsan의 대답은 무엇입니까? – barq

관련 문제