TextView只显示android 2.3中完整字符串的前几个字符

TextView只显示android 2.3中完整字符串的前几个字符,android,android-layout,textview,Android,Android Layout,Textview,我有一个文本视图,我在上面设置了一些文本欢迎用户,但在安卓4+手机上,它显示的很好,就像在快照中一样 Android 4.0.4 HTC mobile中的第一个屏幕显示ITIL FoundationOnline课程 而在Android 2.3中,它只显示第一个字符 其他屏幕安卓2.3.6只显示它 我搜索了一下,但没有任何好处。请建议 我为所有版本的手机工作过,我从来没有遇到过这样的问题。请建议 以下是我的Xml代码: <?xml version="1.0" encoding="ut

我有一个文本视图,我在上面设置了一些文本欢迎用户,但在安卓4+手机上,它显示的很好,就像在快照中一样

Android 4.0.4 HTC mobile中的第一个屏幕显示ITIL FoundationOnline课程

而在Android 2.3中,它只显示第一个字符

其他屏幕安卓2.3.6只显示它

我搜索了一下,但没有任何好处。请建议

我为所有版本的手机工作过,我从来没有遇到过这样的问题。请建议

以下是我的Xml代码:

    <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/color_background"
    android:orientation="vertical" >

    <include
        android:id="@+id/headerlayout"
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:layout_alignParentTop="true"
        layout="@layout/header_logout"
        android:visibility="gone" />

    <RelativeLayout
        android:id="@+id/footerlayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_weight="1"
        android:padding="10dp" >

        <ImageView
            android:id="@+id/logo"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:background="@drawable/header_logo"
            android:paddingLeft="3dp" />
    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/title_course"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_below="@+id/headerlayout"
        android:gravity="center"
        android:padding="@dimen/dimen_paddingOverallLeftRight" >

        <com.util.TypefacedTextView
            android:id="@+id/text_userName"
            style="@style/style_Type1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_marginRight="15dp"
            android:layout_toLeftOf="@+id/text_numchapters"
            android:ellipsize="marquee"
            android:focusable="true"
            android:focusableInTouchMode="true"
            android:marqueeRepeatLimit="marquee_forever"
            android:scrollHorizontally="true"
            android:singleLine="true"
            android:text="Welcome" />

        <com.util.TypefacedTextView
            android:id="@+id/text_numchapters"
            style="@style/style_Type2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:gravity="center_vertical"
            android:text="" />
    </RelativeLayout>

    <View
        android:id="@+id/view"
        android:layout_width="match_parent"
        android:layout_height="1px"
        android:layout_below="@+id/title_course"
        android:background="@color/color_seperator" />

    <com.util.BounceListView
        android:id="@+id/list_enrolledcourses"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/footerlayout"
        android:layout_below="@+id/view"
        android:background="#fff"
        android:cacheColorHint="@android:color/transparent"
        android:divider="@null"
        android:dividerHeight="10dp"
        android:drawSelectorOnTop="false"
        android:listSelector="@color/color_listviewselection"
        android:visibility="gone" />

    <include
        android:id="@+id/layout_progressinfo"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@+id/view"
        layout="@layout/layout_progress"
        android:visibility="visible" />

</RelativeLayout>

格式设置不正确,因此对此深表歉意。奇怪。。。你能发布整个xml布局吗?你能用LinearLayout来处理问题吗?因为我也从来没有因为你的兴趣而面对过这样的问题。。。我已经添加了完整的xml布局。对不起,我也不知道。。。