Vertikale Anordnung im LinearLayout

  • Xamarin.Android

Es gibt 2 Antworten in diesem Thema. Der letzte Beitrag () ist von benk.

    Vertikale Anordnung im LinearLayout

    Hallo zusammen,

    ich versuche einen Einstieg in Xamarin zu finden, und arbeite gerade dieses Tutorial hier durch
    docs.microsoft.com/de-de/xamar…quickstart?pivots=windows

    Anders als im Tutorial beschrieben, bekomme ich es nicht hin, die Elemente untereinander zu platzieren, alle Elemente setzen sich nebeneinander.

    Derzeit sieht mein Code in activity_main.xml so aus

    C#-Quellcode

    1. <LinearLayout
    2. xmlns:android="http://schemas.android.com/apk/res/android"
    3. xmlns:app="http://schemas.android.com/apk/res-auto"
    4. xmlns:tools="http://schemas.android.com/tools"
    5. android:layout_width="match_parent"
    6. android:layout_height="match_parent">
    7. <TextView
    8. android:text="Enter a Phoneword"
    9. android:textAppearance="?android:attr/textAppearanceLarge"
    10. android:layout_width="wrap_content"
    11. android:layout_height="wrap_content"
    12. android:minWidth="25px"
    13. android:minHeight="25px"
    14. android:id="@+id/textView1" />
    15. <Button
    16. android:text="Button"
    17. android:layout_width="wrap_content"
    18. android:layout_height="wrap_content"
    19. android:layout_below="@+id/PhoneNumberText"
    20. android:layout_toLeftOf="@id/textView1"
    21. android:id="@+id/button1" />
    22. <EditText
    23. android:layout_width="wrap_content"
    24. android:layout_height="wrap_content"
    25. android:layout_below="@+id/textView1"
    26. android:id="@+id/PhoneNumberText"
    27. android:text="1-855-Xamarin" />
    28. </LinearLayout>


    Wer kann mir einen Tipp geben, was ich hier übersehen habe?

    Danke!

    *Titel bearbeitet da völlig irreführend* ~NoFear23m

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „Nofear23m“ ()