Android 使文本填充编辑文本内的屏幕

Android 使文本填充编辑文本内的屏幕,android,Android,我想要我的编辑文本,以及我在里面键入的文本,占据整个屏幕。但在这里,只有EditText匹配父级,而其中的文本不匹配 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/LinearLayout1" android:layout_width="match_parent

我想要我的
编辑文本
,以及我在里面键入的文本,占据整个屏幕。但在这里,只有EditText匹配父级,而其中的文本不匹配

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/vector"
android:orientation="vertical" >

<EditText
    android:id="@+id/ed"
    android:layout_width="match_parent"
    android:layout_height="fill_parent"
    android:layout_above="@+id/button2"
    android:layout_alignParentTop="true"
    android:layout_margin="5dp"
    android:background="#50dddddd"
    android:gravity="top|left"
    android:inputType="textMultiLine"
    android:lines="5"
    android:maxWidth="5.0dip"
    android:minWidth="10.0dip"
    android:scrollHorizontally="false"
    android:textColor="#424242"
    android:textStyle="bold" />

<Button
    android:id="@+id/button3"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Write File to Application SandBox"
    android:visibility="gone" />

<Button
    android:id="@+id/button4"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Read File from Application SandBox"
    android:visibility="gone" />

<Button
    android:id="@+id/button2"
    android:layout_width="wrap_content"
    android:layout_height="40dp"
    android:layout_alignParentBottom="true"
    android:layout_alignParentLeft="true"
    android:layout_margin="5dp"
    android:background="@drawable/antivirus_btn2"
    android:text="  READ  "
    android:textColor="@drawable/antivirus_btn_text2" />

<Button
    android:id="@+id/button1"
    android:layout_width="wrap_content"
    android:layout_height="40dp"
    android:layout_alignParentBottom="true"
    android:layout_alignParentRight="true"
    android:layout_margin="5dp"
    android:background="@drawable/antivirus_btn3"
    android:text="  SAVE  "
    android:textColor="@drawable/antivirus_btn_text3" />


我建议您阅读以下文章
这里确切地解释了如何创建这样的控件。还有你可以在那里找到的完整代码。

你需要为edittextcheck指定android:textsize这个问题我实现了它,但没有弄明白什么