Ich bin Debütant in Android und ich möchte eine Schnittstelle wie diese bekommen, aber ich konnte nicht meine Linearlayout SchnittstelleWie kann ich diese Schnittstelle bekommen?
Ich habe versucht, eine horizontale und eine vertikale Linearlayout platzieren zu verwenden, aber es funktioniert nicht Arbeit
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"><TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="22sp"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:id="@+id/txt1"
android:text="AAAAAAAA"/><Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="BE"
android:id="@+id/button1"/></LinearLayout>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:gravity="bottom">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="22sp"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:id="@+id/txt2"
android:text="RRRRRRR"/><LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="22sp"
android:layout_marginRight="10dp"
android:layout_marginEnd="10dp"
android:id="@+id/txt3"
android:text="JJJJJJJJJJ"/>
<Button android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="GO"
android:id="@+id/button2"/>
</LinearLayout>
<Button android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Start"
android:id="@+id/button3"/>
</LinearLayout>
Können Sie mir helfen, diesen Code zu korrigieren?
Ich glaube, Sie auf Ihre Schnittstelle als UI beziehen sollten, weil das erste, was ein Mitarbeiter mit Schnittstelle das Konstrukt Programmiersprache ist. – xvlcw
Sie müssen verschiedene Layouts üben und entwerfen und ihre Eigenschaften verwenden und die Änderungen sehen. Für Anfänger braucht es Zeit, aber wir alle waren Anfänger vor ein paar Jahren. – Kunu