我一直在尝试创建一个简单的记事本,但无法在 xml 文件中创建一个EditText
与父级匹配的文件:
在 xml 中:
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<EditText
android:id="@+id/editText1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:ems="10" >
<requestFocus />
</EditText>
</TableLayout>
我希望全屏与editText匹配父级。
不像这样......我想要以左对齐方式输入的文本
请帮忙!!:)