Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. <ScrollView
  2. android:layout_width="match_parent"
  3. android:layout_height="match_parent"
  4. xmlns:android="http://schemas.android.com/apk/res/android"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. tools:context="com.app.tarun.dc2.Fragments.AddressFragment">
  7.  
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"
  11. android:paddingLeft="@dimen/activity_horizontal_margin"
  12. android:paddingRight="@dimen/activity_horizontal_margin"
  13. android:paddingTop="@dimen/activity_vertical_margin"
  14. android:paddingBottom="@dimen/activity_vertical_margin"
  15. android:orientation="vertical"
  16. >
  17.  
  18.  
  19. <!--Layout for Buttons-->
  20. <LinearLayout
  21. android:layout_width="match_parent"
  22. android:layout_height="wrap_content"
  23. android:gravity="center"
  24. android:orientation="horizontal"
  25. >
  26.  
  27.  
  28. <com.app.tarun.dc2.CustomViews.SquareLayout
  29. android:layout_width="0dp"
  30. android:layout_height="match_parent"
  31. android:layout_margin="25dp"
  32. android:layout_weight="1">
  33.  
  34. <ImageButton
  35. android:src="@drawable/ic_add"
  36. android:id="@+id/medicineEditAddButton"
  37. android:scaleType="fitCenter"
  38. android:padding="20dp"
  39. android:layout_width="match_parent"
  40. android:layout_height="match_parent"
  41. android:background="@drawable/green_button_style"/>
  42.  
  43.  
  44. </com.app.tarun.dc2.CustomViews.SquareLayout>
  45.  
  46. <NumberPicker
  47. android:layout_width="0dp"
  48. android:id="@+id/medicineEditNumberPicker"
  49. android:layout_height="wrap_content"
  50. android:layout_weight="1">
  51.  
  52. </NumberPicker>
  53.  
  54. <com.app.tarun.dc2.CustomViews.SquareLayout
  55. android:layout_width="0dp"
  56. android:layout_height="match_parent"
  57. android:layout_margin="25dp"
  58. android:layout_weight="1">
  59.  
  60. <ImageButton
  61. android:src="@drawable/ic_continue"
  62. android:id="@+id/medicineEditContinueButton"
  63. android:scaleType="fitCenter"
  64. android:padding="20dp"
  65. android:layout_width="match_parent"
  66. android:layout_height="match_parent"
  67. android:background="@drawable/yellow_button_style"/>
  68.  
  69.  
  70. </com.app.tarun.dc2.CustomViews.SquareLayout>
  71.  
  72. </LinearLayout>
  73.  
  74.  
  75. <!--Horizontal Linear Layout for EDITTEXT-->
  76. <LinearLayout
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:orientation="horizontal">
  80.  
  81. <EditText
  82. android:layout_width="match_parent"
  83. android:layout_height="wrap_content"
  84. android:layout_weight="1"
  85. android:hint="First Name"
  86. android:inputType="text"
  87. android:layout_marginTop="25dp"/>
  88.  
  89.  
  90. <EditText
  91. android:layout_width="match_parent"
  92. android:layout_height="wrap_content"
  93. android:layout_weight="1"
  94. android:hint="Last Name"
  95. android:inputType="text"
  96. android:layout_marginTop="25dp"/>
  97.  
  98.  
  99. </LinearLayout>
  100. <!--Horizontal Linear Layout for EDITTEXT end here(First name and last name-->
  101. </LinearLayout></ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement