activity_send_note.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:fitsSystemWindows="true"
  8. tools:context=".SendNoteActivity">
  9. <LinearLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:orientation="vertical">
  13. <EditText
  14. android:id="@+id/noteTitleEditText"
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:ems="10"
  18. android:inputType="textPersonName"
  19. android:text=""
  20. android:hint="@string/note_title"
  21. android:importantForAutofill="no" />
  22. <TextView
  23. android:id="@+id/labelList"
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:text="" />
  27. <EditText
  28. android:id="@+id/noteContentEditText"
  29. android:layout_width="match_parent"
  30. android:layout_height="match_parent"
  31. android:layout_marginTop="8dp"
  32. android:ems="10"
  33. android:lines="10"
  34. android:inputType="textMultiLine"
  35. android:gravity="top"
  36. android:layout_gravity="top"
  37. android:hint="@string/note_text"
  38. android:importantForAutofill="no" />
  39. </LinearLayout>
  40. <com.google.android.material.floatingactionbutton.FloatingActionButton
  41. android:id="@+id/sendNoteButton"
  42. android:layout_width="wrap_content"
  43. android:layout_height="wrap_content"
  44. android:layout_marginBottom="32dp"
  45. android:layout_marginEnd="32dp"
  46. android:clickable="true"
  47. app:backgroundTint="@android:color/darker_gray"
  48. app:layout_constraintBottom_toBottomOf="parent"
  49. app:layout_constraintEnd_toEndOf="parent"
  50. android:focusable="true"
  51. android:contentDescription="@string/send_fab_content_desc"
  52. app:srcCompat="@android:drawable/ic_menu_send" />
  53. </androidx.constraintlayout.widget.ConstraintLayout>