Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/186.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 自定义文本栏_Android - Fatal编程技术网

Android 自定义文本栏

Android 自定义文本栏,android,Android,您好,我正在寻找一种方法,以有一个文本框像这样与我的disclamer在它,所以我想有一个滚动条上下的方式,因为文本将有点长,我不能适应它在框中的时刻 http://img24.imageshack.us/img24/6303/introqm.png <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res

您好,我正在寻找一种方法,以有一个文本框像这样与我的disclamer在它,所以我想有一个滚动条上下的方式,因为文本将有点长,我不能适应它在框中的时刻

   http://img24.imageshack.us/img24/6303/introqm.png



   <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
         style="@style/LYLBKGRD" >

    <EditText
    android:id="@+id/editText1"
    android:layout_width="300dp"
    android:layout_height="250dp"
    android:layout_marginLeft="10dp"
    android:layout_marginTop="15dp"
    android:inputType="textMultiLine">

    <requestFocus />
</EditText>
谢谢

请尝试以下内容

<EditText
     android:id="@+id/edit_text"
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:singleLine="false"
     android:maxLines="3"
     android:scrollbars="vertical">
</EditText>

好的,那么你的问题是什么?试着在滚动视图中包装你的编辑文本。有点难理解你在问什么。对不起,大家好,当我在框中写了很多文本时,文本只是向下移动,但我看不到,这就是为什么我想要一个滚动条