Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="fill_parent"
  4. android:layout_height="fill_parent"
  5. android:layout_gravity="center"
  6. android:orientation="vertical"
  7. tools:context=".LinearLayout" >
  8.  
  9. <TextView
  10. android:layout_width="wrap_content"
  11. android:layout_height="wrap_content"
  12. android:paddingLeft="110px"
  13. android:paddingTop="10px"
  14. android:text="Login Page with Linear Layout " />
  15.  
  16. <LinearLayout
  17. android:layout_width="fill_parent"
  18. android:layout_height="wrap_content"
  19. android:orientation="horizontal"
  20. android:paddingTop="20px">
  21.  
  22. <TextView
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:paddingLeft="10px"
  26. android:paddingTop="20px"
  27. android:text="Username" />
  28.  
  29. <EditText
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:layout_weight="0.5"
  33. android:layout_marginLeft="40px"
  34. android:paddingTop="20px" />
  35.  
  36. </LinearLayout>
  37.  
  38. <LinearLayout
  39. android:layout_width="fill_parent"
  40. android:layout_height="wrap_content"
  41. android:orientation="horizontal"
  42. android:paddingTop="20px"
  43. >
  44.  
  45. <TextView
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:text="Password"
  49. android:paddingTop="20px"
  50. android:paddingLeft="10px"/>
  51.  
  52. <EditText
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:layout_gravity="center_horizontal"
  56. android:layout_marginLeft="40px"
  57. android:layout_weight="0.50"
  58. android:paddingTop="20px" />
  59.  
  60. </LinearLayout>
  61.  
  62. <Button
  63. android:layout_width="wrap_content"
  64. android:layout_height="100dp"
  65. android:layout_gravity="center"
  66. android:paddingLeft="20px"
  67. android:paddingTop="10px"
  68. android:onClick="press"
  69. android:text="Press to see Login with Table Layout" />
  70.  
  71. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement