download_custom_amount.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. android:layout_width="match_parent"
  5. android:layout_height="wrap_content"
  6. android:gravity="center"
  7. android:orientation="horizontal">
  8. <androidx.appcompat.widget.AppCompatImageButton
  9. android:id="@+id/btn_decrease_10"
  10. android:layout_width="wrap_content"
  11. android:layout_height="match_parent"
  12. android:background="@drawable/list_item_selector"
  13. android:padding="8dp"
  14. android:tint="?attr/colorAccent"
  15. app:srcCompat="@drawable/ic_chevron_left_double_black_24dp" />
  16. <androidx.appcompat.widget.AppCompatImageButton
  17. android:id="@+id/btn_decrease"
  18. android:layout_width="wrap_content"
  19. android:layout_height="match_parent"
  20. android:background="@drawable/list_item_selector"
  21. android:padding="8dp"
  22. android:tint="?attr/colorAccent"
  23. app:srcCompat="@drawable/ic_chevron_left_black_24dp" />
  24. <EditText
  25. android:id="@+id/myNumber"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:digits="0123456789"
  29. android:inputType="number"
  30. android:padding="8dp"
  31. android:textStyle="bold" />
  32. <androidx.appcompat.widget.AppCompatImageButton
  33. android:id="@+id/btn_increase"
  34. android:layout_width="wrap_content"
  35. android:layout_height="match_parent"
  36. android:background="@drawable/list_item_selector"
  37. android:padding="8dp"
  38. android:tint="?attr/colorAccent"
  39. app:srcCompat="@drawable/ic_chevron_right_black_24dp" />
  40. <androidx.appcompat.widget.AppCompatImageButton
  41. android:id="@+id/btn_increase_10"
  42. android:layout_width="wrap_content"
  43. android:layout_height="match_parent"
  44. android:background="@drawable/list_item_selector"
  45. android:padding="8dp"
  46. android:tint="?attr/colorAccent"
  47. app:srcCompat="@drawable/ic_chevron_right_double_black_24dp" />
  48. </LinearLayout>