Advertisement
Guest User

android_main.xml

a guest
Jun 26th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 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. <LinearLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:orientation="vertical">
  13.  
  14. <TextView
  15. android:id="@+id/txtDisplay"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:layout_marginBottom="25dp"
  19. android:text="Some text here" />
  20.  
  21. <LinearLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="match_parent"
  24. android:orientation="horizontal">
  25.  
  26. <EditText
  27. android:id="@+id/txtInput"
  28. android:layout_width="wrap_content"
  29. android:layout_height="wrap_content"
  30. android:layout_weight="1"
  31. android:ems="10"
  32. android:inputType="textPersonName"
  33. android:text="Type something here..." />
  34.  
  35. <Button
  36. android:id="@+id/btnSubmit"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_weight="1"
  40. android:text="Submit" />
  41. </LinearLayout>
  42.  
  43. </LinearLayout>
  44. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement