<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/hintergrund"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/display"
android:orientation="vertical"
>
<EditText
android:id="@+id/editText1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLines="1"
/>
<Button
android:layout_width="fill_parent"
android:text="bla"
android:layout_height="wrap_content"
/>
<TextView
android:id="@+id/ergebnis"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
</LinearLayout>
</LinearLayout>
こんにちは、私はAndroid開発、特にXMLに不慣れです。
EditTextとButtonを画面幅全体に表示したいのですが、エミュレーターの上でコードを実行すると、それらが中央に配置されているが、画面幅の約半分しか表示されないことが示されます。どうすればそれを変更でき、何が間違っているのですか?ありがとうございました