tools_bookmark_input_dialog.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="wrap_content"
  5. android:layout_gravity="center"
  6. android:layout_height="wrap_content"
  7. xmlns:tools="http://schemas.android.com/tools"
  8. >
  9. <androidx.constraintlayout.widget.ConstraintLayout
  10. android:layout_width="@dimen/tools_dialog_layout_width"
  11. android:paddingHorizontal="16dp"
  12. android:paddingTop="16dp"
  13. android:paddingBottom="8dp"
  14. app:layout_constraintTop_toTopOf="parent"
  15. app:layout_constraintBottom_toBottomOf="parent"
  16. app:layout_constraintStart_toStartOf="parent"
  17. app:layout_constraintEnd_toEndOf="parent"
  18. android:layout_height="wrap_content">
  19. <androidx.appcompat.widget.AppCompatEditText
  20. android:id="@+id/et_bookmark"
  21. android:layout_width="match_parent"
  22. android:maxLines="1"
  23. android:minHeight="45dp"
  24. android:hint="@string/tools_bookmark_title"
  25. android:gravity="center_vertical"
  26. android:paddingStart="8dp"
  27. android:layout_height="wrap_content"
  28. app:layout_constraintEnd_toEndOf="parent"
  29. app:layout_constraintStart_toStartOf="parent"
  30. app:layout_constraintTop_toTopOf="parent" />
  31. <LinearLayout
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:layout_gravity="end"
  35. android:layout_marginTop="16dp"
  36. app:layout_constraintEnd_toEndOf="parent"
  37. app:layout_constraintTop_toBottomOf="@id/et_bookmark"
  38. android:orientation="horizontal">
  39. <Button
  40. android:id="@+id/btn_cancel"
  41. style="@style/tools_dialog_button_style"
  42. tools:textColor="@android:color/black"
  43. android:foreground="?android:attr/selectableItemBackground"
  44. android:text="@string/tools_common_cancel" />
  45. <Button
  46. android:id="@+id/btn_add"
  47. style="@style/tools_dialog_button_style"
  48. tools:textColor="@android:color/black"
  49. android:foreground="?android:attr/selectableItemBackground"
  50. android:text="@string/tools_common_okay" />
  51. </LinearLayout>
  52. </androidx.constraintlayout.widget.ConstraintLayout>
  53. </androidx.constraintlayout.widget.ConstraintLayout>