Advertisement
Guest User

activity_add_employee

a guest
Apr 25th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.93 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:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="vertical">
  7.  
  8.  
  9. <TextView
  10. android:id="@+id/txtWelcome"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:text="@string/txtwelcome"
  14. android:textSize="18sp" />
  15.  
  16. <ScrollView
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:id="@+id/scrollView"
  20. android:paddingTop="12dp"
  21. android:layout_gravity="center_horizontal" >
  22.  
  23. <LinearLayout
  24. android:orientation="vertical"
  25. android:layout_width="match_parent"
  26. android:weightSum="12"
  27. android:layout_height="wrap_content">
  28.  
  29.  
  30. <EditText
  31. android:id="@+id/txtName"
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:layout_weight="1"
  35. android:hint="@string/txtname"
  36. android:inputType="textPersonName"/>
  37.  
  38. <Button
  39. android:id="@+id/btnDOB"
  40. android:layout_width="wrap_content"
  41. android:layout_gravity="center"
  42. android:layout_height="wrap_content"
  43. android:layout_weight="1"
  44. android:onClick="onClickDate"
  45. android:text="@string/txtDOB" />
  46.  
  47. <TextView
  48. android:id="@+id/txtdisplaydate"
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content"
  51. android:layout_weight="1"
  52. android:textSize="15sp"/>
  53.  
  54. <EditText
  55. android:id="@+id/txtAddress"
  56. android:layout_width="match_parent"
  57. android:layout_height="wrap_content"
  58. android:layout_weight="1"
  59. android:hint="@string/txtaddress"
  60. android:inputType="textPostalAddress"/>
  61.  
  62. <EditText
  63. android:id="@+id/txtTown"
  64. android:layout_width="match_parent"
  65. android:layout_height="wrap_content"
  66. android:layout_weight="1"
  67. android:hint="@string/txttown"
  68. android:inputType="text"/>
  69.  
  70. <EditText
  71. android:id="@+id/txtPostcode"
  72. android:layout_width="match_parent"
  73. android:layout_height="wrap_content"
  74. android:layout_weight="1"
  75. android:hint="@string/txtpostcode"
  76. android:inputType="text"/>
  77.  
  78. <EditText
  79. android:id="@+id/txtContactNumber"
  80. android:layout_width="match_parent"
  81. android:layout_height="wrap_content"
  82. android:layout_weight="1"
  83. android:hint="@string/txtcontactnumber"
  84. android:inputType="phone"/>
  85.  
  86. <EditText
  87. android:id="@+id/txtEmail"
  88. android:layout_width="match_parent"
  89. android:layout_height="wrap_content"
  90. android:layout_weight="1"
  91. android:hint="@string/txtemail"
  92. android:inputType="textEmailAddress"/>
  93.  
  94. <EditText
  95. android:id="@+id/txtJobTitle"
  96. android:layout_width="match_parent"
  97. android:layout_height="wrap_content"
  98. android:layout_weight="1"
  99. android:hint="@string/txtjobtitle"
  100. android:inputType="text"/>
  101.  
  102. <EditText
  103. android:id="@+id/txtSalary"
  104. android:layout_width="match_parent"
  105. android:layout_height="wrap_content"
  106. android:layout_weight="1"
  107. android:hint="@string/txtsalary"
  108. android:inputType="text"/>
  109.  
  110. </LinearLayout>
  111.  
  112. </ScrollView>
  113.  
  114. <LinearLayout
  115. android:layout_width="match_parent"
  116. android:layout_height="match_parent"
  117. android:weightSum="2"
  118. android:orientation="horizontal">
  119.  
  120. <Button
  121. android:id="@+id/btncancel"
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. android:layout_gravity="bottom"
  125. android:layout_weight="1"
  126. android:text="@string/txtcancel"
  127. android:onClick="onClickCancel"/>
  128.  
  129. <Button
  130. android:id="@+id/btnAddEmployee"
  131. android:layout_width="wrap_content"
  132. android:layout_height="wrap_content"
  133. android:layout_gravity="bottom"
  134. android:layout_weight="1"
  135. android:text="@string/txtadd" />
  136. </LinearLayout>
  137.  
  138. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement