Advertisement
SenpaiZero

Untitled

May 8th, 2024
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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:id="@+id/main"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:orientation="vertical"
  9. tools:context=".MainActivity" >
  10.  
  11. <LinearLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:orientation="horizontal">
  15.  
  16. <EditText
  17. android:id="@+id/one"
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:layout_weight="1"
  21. android:ems="10"
  22. android:hint="Enter a word"
  23. android:inputType="text" />
  24.  
  25. <Button
  26. android:id="@+id/swapBtn"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:layout_weight="1"
  30. android:text="SWAP"
  31. app:cornerRadius="8dp" />
  32. </LinearLayout>
  33.  
  34. <LinearLayout
  35. android:layout_width="match_parent"
  36. android:layout_height="wrap_content"
  37. android:orientation="horizontal">
  38.  
  39. <EditText
  40. android:id="@+id/two"
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content"
  43. android:layout_weight="1"
  44. android:ems="10"
  45. android:hint="Enter a word"
  46. android:inputType="text" />
  47.  
  48. <Button
  49. android:id="@+id/checkBtn"
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:layout_weight="1"
  53. android:text="Button"
  54. app:cornerRadius="8dp" />
  55. </LinearLayout>
  56. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement