Advertisement
Guest User

activity_main.xml

a guest
Feb 18th, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.19 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout 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.    tools:context=".MainActivity">
  8.  
  9.     <EditText
  10.        android:id="@+id/editText1"
  11.        android:layout_width="wrap_content"
  12.        android:layout_height="wrap_content"
  13.        android:text="Hello World!"
  14.        app:layout_constraintBottom_toBottomOf="parent"
  15.        app:layout_constraintLeft_toLeftOf="parent"
  16.        app:layout_constraintRight_toRightOf="parent"
  17.        app:layout_constraintTop_toTopOf="parent" />
  18.  
  19.     <Button
  20.        android:id="@+id/button"
  21.        android:layout_width="wrap_content"
  22.        android:layout_height="wrap_content"
  23.        android:layout_marginTop="12dp"
  24.        android:text="Klick mich"
  25.        app:layout_constraintEnd_toEndOf="parent"
  26.        app:layout_constraintStart_toStartOf="parent"
  27.        app:layout_constraintTop_toBottomOf="@+id/editText1" />
  28.  
  29. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement