Advertisement
Guest User

Untitled

a guest
Aug 30th, 2014
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="fill_parent"
  4. android:layout_height="fill_parent"
  5. android:paddingLeft="16dp"
  6. android:paddingRight="16dp"
  7. android:orientation="vertical">
  8.  
  9. <EditText
  10. android:id="@+id/editNomProduit"
  11. android:layout_width="fill_parent"
  12. android:layout_height="wrap_content"
  13. android:ems="10"
  14. android:hint="@string/ht_nom_produit" />
  15.  
  16.  
  17.  
  18. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  19. android:layout_width="fill_parent"
  20. android:layout_height="wrap_content"
  21. android:paddingLeft="16dp"
  22. android:paddingRight="16dp"
  23. android:orientation="horizontal">
  24.  
  25. <TextView
  26. android:id="@+id/labelQuantiteProduitEdit"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:text="@string/labelQuantiteProduitEdit"
  30. android:textAppearance="?android:attr/textAppearanceMedium" />
  31.  
  32. <EditText
  33. android:id="@+id/editQuantite"
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:inputType="number" />
  37.  
  38. <Spinner
  39. android:id="@+id/spinnerUnite"
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"/>
  42.  
  43. </LinearLayout>
  44. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  45. android:layout_width="fill_parent"
  46. android:layout_height="wrap_content"
  47. android:paddingLeft="16dp"
  48. android:paddingRight="16dp"
  49. android:orientation="horizontal">
  50.  
  51. <TextView
  52. android:id="@+id/labeDateAchatProduitEdit"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:text="@string/labelDateAchatProduitEdit"
  56. android:textAppearance="?android:attr/textAppearanceMedium" />
  57.  
  58. <DatePicker
  59. android:id="@+id/dpDateAchatProduit"
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content" />
  62.  
  63. </LinearLayout>
  64.  
  65. </LinearLayout>
  66.  
  67. android:calendarViewShown="false"
  68.  
  69. <datepicker>
  70.  
  71. android:calendarViewShown="false"
  72.  
  73. <DatePicker
  74. android:id="@+id/datepickerv1"
  75. android:calendarViewShown="false">
  76.  
  77. Note: If you are not using "calendarViewShow" in xml, follow this step.
  78.  
  79. DatePicker dp=(DatePicker)findViewById(R.id.datepickerv1);
  80. dp.setCalendarViewShown(false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement