item_notification_settings.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. ~ Nextcloud Talk - Android Client
  4. ~
  5. ~ SPDX-FileCopyrightText: 2023 Julius Linus <juliuslinus1@gmail.com>
  6. ~ SPDX-FileCopyrightText: 2023 Andy Scherzinger <info@andy-scherzinger.de>
  7. ~ SPDX-License-Identifier: GPL-3.0-or-later
  8. -->
  9. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  10. android:id="@+id/notification_settings"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:orientation="vertical">
  14. <com.google.android.material.textview.MaterialTextView
  15. android:id="@+id/notification_settings_category"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:layout_marginStart="@dimen/standard_margin"
  19. android:layout_marginEnd="@dimen/standard_margin"
  20. android:paddingTop="@dimen/standard_padding"
  21. android:paddingBottom="@dimen/standard_half_padding"
  22. android:text="@string/nc_notification_settings"
  23. android:textColor="@color/colorPrimary"
  24. android:textStyle="bold"
  25. android:textSize="@dimen/headline_text_size"/>
  26. <LinearLayout
  27. android:id="@+id/notification_settings_important_conversation"
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:paddingStart="@dimen/standard_margin"
  31. android:layout_marginTop="@dimen/standard_half_margin"
  32. android:paddingEnd="@dimen/standard_margin"
  33. android:layout_marginBottom="@dimen/standard_half_margin"
  34. android:orientation="horizontal"
  35. android:background="?android:attr/selectableItemBackground">
  36. <LinearLayout
  37. android:layout_width="0dp"
  38. android:layout_height="wrap_content"
  39. android:layout_weight="1"
  40. android:orientation="vertical">
  41. <com.google.android.material.textview.MaterialTextView
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:text="@string/nc_important_conversation"
  45. android:textSize="@dimen/headline_text_size" />
  46. <com.google.android.material.textview.MaterialTextView
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:hint="@string/nc_important_conversation_desc"
  50. android:textSize="@dimen/supporting_text_text_size" />
  51. </LinearLayout>
  52. <com.google.android.material.materialswitch.MaterialSwitch
  53. android:id="@+id/important_conversation_switch"
  54. android:layout_width="wrap_content"
  55. android:layout_height="wrap_content"
  56. android:layout_gravity="center_vertical"
  57. android:layout_marginStart="@dimen/standard_margin"
  58. android:clickable="false" />
  59. </LinearLayout>
  60. <com.google.android.material.textfield.TextInputLayout
  61. android:id="@+id/notification_settings_messages_input_layout"
  62. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu"
  63. android:layout_width="match_parent"
  64. android:layout_height="wrap_content"
  65. android:layout_marginStart="@dimen/standard_margin"
  66. android:layout_marginTop="@dimen/standard_half_margin"
  67. android:layout_marginEnd="@dimen/standard_margin"
  68. android:layout_marginBottom="@dimen/standard_half_margin"
  69. android:hint="@string/nc_plain_old_messages">
  70. <com.google.android.material.textfield.MaterialAutoCompleteTextView
  71. android:id="@+id/conversation_info_message_notifications_dropdown"
  72. android:layout_width="match_parent"
  73. android:layout_height="wrap_content"
  74. android:inputType="none"
  75. android:lines="1"
  76. android:popupTheme="@style/ThemeOverlay.AppTheme.PopupMenu"
  77. android:text="" />
  78. </com.google.android.material.textfield.TextInputLayout>
  79. <LinearLayout
  80. android:id="@+id/notification_settings_call_notifications"
  81. android:layout_width="match_parent"
  82. android:layout_height="wrap_content"
  83. android:orientation="horizontal"
  84. android:paddingTop="@dimen/standard_half_padding"
  85. android:paddingBottom="@dimen/standard_half_padding"
  86. android:paddingStart="@dimen/standard_margin"
  87. android:paddingEnd="@dimen/standard_margin"
  88. android:background="?android:attr/selectableItemBackground">
  89. <com.google.android.material.textview.MaterialTextView
  90. android:layout_width="0dp"
  91. android:layout_height="wrap_content"
  92. android:layout_weight="1"
  93. android:text="@string/nc_call_notifications"
  94. android:textSize="@dimen/headline_text_size" />
  95. <com.google.android.material.materialswitch.MaterialSwitch
  96. android:id="@+id/call_notifications_switch"
  97. android:layout_width="wrap_content"
  98. android:layout_height="wrap_content"
  99. android:layout_marginStart="@dimen/standard_margin"
  100. android:checked="true"
  101. android:clickable="false" />
  102. </LinearLayout>
  103. </LinearLayout>