用android包装文本?

用android包装文本?,android,Android,我想在android中实现包装文本。我正在使用以下属性,但仍然无法实现 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:id="@

我想在android中实现包装文本。我正在使用以下属性,但仍然无法实现

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >

<TextView
    android:id="@+id/textview01"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:ellipsize="none"
    android:scrollHorizontally="false"
    android:text="@string/hello" />         // @String/hello <string name="hello">Hello,How are you world whatsup</string>

//@String/你好,你好吗

有人能帮忙吗

用这个

<TextView
  android:id="@+id/textview01"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:ellipsize="none"
  android:scrollHorizontally="false"
  android:text="@string/hello" />    

使用此

<TextView
  android:id="@+id/textview01"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:ellipsize="none"
  android:scrollHorizontally="false"
  android:text="@string/hello" />    

我尝试了你的代码,替换了@string/hello=“你好,你好吗,世界whatsup.hello,你好吗,世界whatsup”,效果很好

您的布局中的其他视图可能会影响您的文本视图


尝试添加“android:layout_weight=“1”我通过替换@string/hello=“hello,你好,你好,你好,你好”尝试了你的代码,效果很好

您的布局中的其他视图可能会影响您的文本视图


尝试添加“android:layout_weight=“1”“@Dr.nik:您还想要什么?给出的描述和代码足以理解问题。。!你说的包裹是什么意思?你能发布你所得到的和你需要的截图吗?@YugandharBabu:@Dr.nik:你还想要什么?给出的描述和代码足以理解问题。。!你说的包裹是什么意思?你能把你得到的和你需要的截图贴出来吗?@YugandharBabu:我试过了,没用。我想补充一点,我正在画布上绘制这个文本视图,它会影响到它吗?看看这个,实际上我想要实现的是,我尝试过的不起作用。我想补充一点,我正在画布上绘制这个文本视图,它会影响它吗?看看这个,实际上我想要实现的是,我正在画布上绘制这个文本。我还添加了布局权重,但仍然无法实现,因为sameI正在画布上绘制此文本。我也增加了重量,但仍然无法达到同样的效果