TextView文本未在Android 4.3上包装

TextView文本未在Android 4.3上包装,android,textview,themes,Android,Textview,Themes,我有一个包含文本视图的RelativeLayout。我希望文本视图文本在多行上换行 它在安卓4.1和4.2上运行良好(尚未尝试过早期版本)。然而,在安卓4.3上,文本没有包装,而是被剪切(见下面的屏幕截图) Layout.xml: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android

我有一个包含文本视图的RelativeLayout。我希望文本视图文本在多行上换行

它在安卓4.1和4.2上运行良好(尚未尝试过早期版本)。然而,在安卓4.3上,文本没有包装,而是被剪切(见下面的屏幕截图)

Layout.xml:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/feed_item"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@drawable/touchable_background_msf"
    android:padding="@dimen/feed_item_padding" >

    <com.binarymango.msfnews.images.RecyclingImageView
        android:id="@+id/feed_item_icon"
        android:layout_width="@dimen/feed_thumb_width"
        android:layout_height="@dimen/feed_thumb_height"
        android:contentDescription="Description" />

    <TextView
        android:id="@+id/feed_item_text"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBottom="@+id/feed_item_icon"
        android:layout_alignLeft="@+id/feed_item_icon"
        android:layout_alignRight="@+id/feed_item_icon"
        android:background="@color/text_background_msf"
        android:ellipsize="end"
        android:maxLines="3"
        android:minLines="2"
        android:padding="@dimen/feed_item_text_padding"
        android:text="Description"
        android:textAppearance="?android:attr/textAppearanceSmall"
        android:textColor="@color/text_msf" />

</RelativeLayout>

此外,我怀疑这可能与主题有关。我的应用程序使用Theme.AppCompat.Light

例如,您可以使用
android:line=“3”
来与第一张图像具有相同的行为。

您是否也尝试使用layout\u width参数,并设置宽度来包装内容?删除android:textAppearance=“?android:attr/textAppearanceSmall”并为不同的设备输入不同的文本大小,但这不起作用(结果没有变化)您正在测试的设备或模拟器…在Nexus 7设备和模拟器上测试4.3,在SGS2和模拟器上测试4.2,您最终解决了这个问题吗?我也有同样的经历。。。
android:singleLine="false"
android:scrollHorizontally="false"
android:inputType="textMultiLine"
android:width="0dip"