Advertisement
Shishu

linear layout for android

Oct 4th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 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:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical"
  8. tools:context="newapp.firstproject.MainActivity">
  9.  
  10. <TextView
  11. android:id="@+id/a1"
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:gravity="center"
  15. android:text="User Info"
  16. android:textColor="@color/colorAccent"
  17. android:textSize="30sp" />
  18.  
  19. <TextView
  20. android:id="@+id/a2"
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. android:gravity="left"
  24. android:text="Name"
  25. android:textColor="#"
  26. android:textSize="30sp" />
  27.  
  28. <EditText
  29. android:id="@+id/a3"
  30. android:layout_width="match_parent"
  31. android:layout_height="wrap_content"
  32. android:background="#f00" />
  33.  
  34. <TextView
  35. android:id="@+id/a4"
  36. android:layout_width="match_parent"
  37. android:layout_height="wrap_content"
  38. android:gravity="left"
  39. android:text="Phone Number"
  40. android:textColor="#"
  41. android:textSize="30sp" />
  42.  
  43. <EditText
  44. android:id="@+id/a5"
  45. android:layout_width="match_parent"
  46. android:layout_height="wrap_content"
  47. android:background="#f000" />
  48.  
  49. <TextView
  50. android:id="@+id/a6"
  51. android:layout_width="match_parent"
  52. android:layout_height="wrap_content"
  53. android:gravity="left"
  54. android:text="Address"
  55. android:textColor="#"
  56. android:textSize="30sp" />
  57.  
  58. <EditText
  59. android:id="@+id/a7"
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. android:background="#f00f" />
  63.  
  64. <Button
  65. android:id="@+id/a8"
  66. android:layout_width="wrap_content"
  67. android:layout_height="wrap_content"
  68. android:text="Submit"
  69. android:textColor="#f00f" />
  70.  
  71. <Button
  72. android:id="@+id/a9"
  73. android:layout_width="match_parent"
  74. android:layout_height="wrap_content"
  75. android:text="Exit"
  76. android:textColor="#f00"
  77. android:layout_gravity="center"/>
  78. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement