0
Diese Schnittstelle My Simple Project GUI istTextfelder und Buttons Merge to top Wenn Run Android Projekt
Wenn ich es laufen Sein wie folgt aussehen
Wie kann ich behebt dieses Problem?
Diese Schnittstelle My Simple Project GUI istTextfelder und Buttons Merge to top Wenn Run Android Projekt
Wenn ich es laufen Sein wie folgt aussehen
Wie kann ich behebt dieses Problem?
dies versuchen,
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:textAppearance="@style/TextAppearanceRegular.FontPath" >
<EditText
android:id="@+id/number1"
android:layout_width="match_parent"
android:layout_height="25dip"
android:gravity="start|center_vertical"
android:hint="number1"
android:textSize="16sp" />
<EditText
android:id="@+id/number2"
android:layout_width="match_parent"
android:layout_height="25dip"
android:gravity="start|center_vertical"
android:hint="number2"
android:textSize="16sp" />
<Button
android:id="@+id/plus"
android:text="+"
android:layout_width="100dp"
android:layout_height="50dp"/>
</LinearLayout>
Verwendung Linearlayout mit vertikaler Ausrichtung. – DkThakur