content_main.xml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.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. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  8. tools:context=".MainActivity"
  9. tools:showIn="@layout/activity_main">
  10. <TextView
  11. android:id="@+id/setupStatusTextView"
  12. android:layout_width="350dp"
  13. android:layout_height="70dp"
  14. android:layout_marginBottom="20dp"
  15. android:layout_marginEnd="4dp"
  16. android:layout_marginStart="4dp"
  17. android:layout_marginTop="8dp"
  18. android:text=""
  19. android:textSize="18sp"
  20. app:layout_constraintBottom_toTopOf="@+id/setupConnectionButton"
  21. app:layout_constraintEnd_toEndOf="parent"
  22. app:layout_constraintStart_toStartOf="parent"
  23. app:layout_constraintTop_toTopOf="parent"
  24. app:layout_constraintVertical_bias="0.648" />
  25. <Button
  26. android:id="@+id/setupConnectionButton"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:layout_marginBottom="20dp"
  30. android:layout_marginEnd="8dp"
  31. android:layout_marginStart="8dp"
  32. android:layout_marginTop="20dp"
  33. android:text="@string/trilium_connection_settings"
  34. app:layout_constraintBottom_toTopOf="@+id/textView"
  35. app:layout_constraintEnd_toEndOf="parent"
  36. app:layout_constraintStart_toStartOf="parent"
  37. app:layout_constraintTop_toBottomOf="@+id/setupStatusTextView" />
  38. <TextView
  39. android:id="@+id/textView"
  40. android:layout_width="350dp"
  41. android:layout_height="107dp"
  42. android:layout_marginBottom="8dp"
  43. android:layout_marginEnd="4dp"
  44. android:layout_marginStart="4dp"
  45. android:layout_marginTop="8dp"
  46. android:text="Please note that this view is used only for setup. For adding notes, use another shortcut called 'Add note' and to add image, you need to share it to 'Trilium Sender' from gallery app."
  47. android:textSize="18sp"
  48. app:layout_constraintBottom_toBottomOf="parent"
  49. app:layout_constraintEnd_toEndOf="parent"
  50. app:layout_constraintStart_toStartOf="parent"
  51. app:layout_constraintTop_toBottomOf="@+id/setupConnectionButton" />
  52. </android.support.constraint.ConstraintLayout>