mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Using a style for top bar icons to prevent duplicating code
This commit is contained in:
parent
62ff36e7a7
commit
4d8ab32da7
48 changed files with 99 additions and 228 deletions
|
|
@ -25,15 +25,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -75,15 +75,13 @@
|
|||
app:layout_constraintBottom_toBottomOf="@id/avatar"/>
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/search_toggle"
|
||||
android:onClick="@{() -> viewModel.openSearchBar()}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/magnifying_glass"
|
||||
android:adjustViewBounds="true"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:contentDescription="@string/content_description_open_filter"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
|
|
@ -92,15 +90,13 @@
|
|||
app:tint="?attr/color_on_main" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/extra_action"
|
||||
android:onClick="@{extraActionClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:padding="15dp"
|
||||
android:src="@{extraActionIcon, default=@drawable/dots_three_vertical}"
|
||||
android:adjustViewBounds="true"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:contentDescription="@{extraActionContentDescription}"
|
||||
android:visibility="@{!viewModel.searchBarVisible && enableExtraAction ? View.VISIBLE : View.GONE, default=gone}"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
|
|
@ -110,15 +106,13 @@
|
|||
app:tint="?attr/color_on_main" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/cancel_search"
|
||||
android:onClick="@{() -> viewModel.closeSearchBar()}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="5dp"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:adjustViewBounds="true"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:contentDescription="@string/content_description_cancel_filter"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
app:layout_constraintBottom_toBottomOf="@id/search"
|
||||
|
|
@ -159,15 +153,13 @@
|
|||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/clear_field"
|
||||
android:onClick="@{() -> viewModel.clearFilter()}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/x"
|
||||
android:adjustViewBounds="true"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:contentDescription="@string/content_description_clear_filter"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
app:layout_constraintBottom_toBottomOf="@id/search"
|
||||
|
|
|
|||
|
|
@ -26,15 +26,13 @@
|
|||
app:layout_constraintGuide_percent="0.50" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
|
|
|||
|
|
@ -63,15 +63,13 @@
|
|||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/search_toggle"
|
||||
android:onClick="@{() -> viewModel.openSearchBar()}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/magnifying_glass"
|
||||
android:adjustViewBounds="true"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:contentDescription="@string/content_description_open_filter"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
|
|
@ -80,15 +78,13 @@
|
|||
app:tint="?attr/color_main2_600" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/extra_action"
|
||||
android:onClick="@{extraActionClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:padding="15dp"
|
||||
android:src="@{extraActionIcon, default=@drawable/dots_three_vertical}"
|
||||
android:adjustViewBounds="true"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:contentDescription="@{extraActionContentDescription}"
|
||||
android:visibility="@{!viewModel.searchBarVisible && enableExtraAction ? View.VISIBLE : View.GONE, default=gone}"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
|
|
@ -98,15 +94,13 @@
|
|||
app:tint="?attr/color_main2_600" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/cancel_search"
|
||||
android:onClick="@{() -> viewModel.closeSearchBar()}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="5dp"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:adjustViewBounds="true"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:contentDescription="@string/content_description_cancel_filter"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
app:layout_constraintBottom_toBottomOf="@id/search"
|
||||
|
|
@ -147,16 +141,14 @@
|
|||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/clear_field"
|
||||
android:onClick="@{() -> viewModel.clearFilter()}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/x"
|
||||
android:adjustViewBounds="true"
|
||||
android:contentDescription="@string/content_description_clear_filter"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
app:layout_constraintBottom_toBottomOf="@id/search"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
|||
|
|
@ -123,14 +123,12 @@
|
|||
app:layout_constraintEnd_toStartOf="@id/menu"/>
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:onClick="@{() -> model.openMenu(menu)}"
|
||||
android:id="@+id/menu"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:padding="15dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:contentDescription="@string/content_description_open_drawer_menu_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:src="@drawable/dots_three_vertical"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
|||
|
|
@ -43,15 +43,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -28,15 +28,13 @@
|
|||
android:background="?attr/color_main2_000">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -22,15 +22,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -36,14 +36,13 @@
|
|||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="@dimen/top_bar_height"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:visibility="@{viewModel.showBackButton ? View.VISIBLE : View.INVISIBLE, default=invisible}"
|
||||
app:tint="?attr/color_main2_500"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
|
|
|
|||
|
|
@ -39,14 +39,13 @@
|
|||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
android:onClick="@{backClickListener}"
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="@dimen/top_bar_height"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main2_500"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"/>
|
||||
|
|
|
|||
|
|
@ -30,14 +30,13 @@
|
|||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:onClick="@{backClickListener}"
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="@dimen/top_bar_height"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="@color/bc_white"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"/>
|
||||
|
|
|
|||
|
|
@ -23,14 +23,13 @@
|
|||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
android:onClick="@{backClickListener}"
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="@dimen/top_bar_height"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main2_500"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"/>
|
||||
|
|
|
|||
|
|
@ -57,14 +57,13 @@
|
|||
app:constraint_referenced_ids="create_email_account_label, no_push_label" />
|
||||
|
||||
<ImageView
|
||||
android:onClick="@{backClickListener}"
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="@dimen/top_bar_height"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main2_500"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"/>
|
||||
|
|
|
|||
|
|
@ -24,14 +24,13 @@
|
|||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
android:onClick="@{backClickListener}"
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="@dimen/top_bar_height"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main2_500"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"/>
|
||||
|
|
|
|||
|
|
@ -30,14 +30,13 @@
|
|||
android:layout_height="wrap_content">
|
||||
|
||||
<ImageView
|
||||
android:onClick="@{backClickListener}"
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="@dimen/top_bar_height"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main2_500"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"/>
|
||||
|
|
|
|||
|
|
@ -24,15 +24,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:padding="15dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
@ -46,22 +44,21 @@
|
|||
android:layout_marginStart="10dp"
|
||||
android:layout_marginEnd="10dp"
|
||||
android:text="@{viewModel.conferenceModel.participantsLabel, default=`Participant (1)`}"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/show_menu"
|
||||
app:layout_constraintStart_toEndOf="@id/back"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/show_menu"
|
||||
android:onClick="@{showMenuClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:padding="15dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:layout_height="0dp"
|
||||
android:src="@drawable/dots_three_vertical"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:contentDescription="@string/content_description_show_popup_menu"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/title"
|
||||
app:tint="?attr/color_main2_500"/>
|
||||
|
||||
<View
|
||||
|
|
|
|||
|
|
@ -32,15 +32,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:adjustViewBounds="true"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
|
|
|||
|
|
@ -21,15 +21,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:padding="15dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
@ -48,15 +46,13 @@
|
|||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/merge"
|
||||
android:onClick="@{mergeCallsClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:padding="15dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:src="@drawable/arrows_merge"
|
||||
android:contentDescription="@string/content_description_merge_calls_into_conference"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:visibility="@{viewModel.callsCount > 1 ? View.VISIBLE : View.GONE}"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
|
|
|
|||
|
|
@ -70,16 +70,14 @@
|
|||
android:visibility="@{viewModel.searchBarVisible ? View.VISIBLE : View.GONE, default=gone}" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:padding="15dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:visibility="@{viewModel.isCallConversation || viewModel.showBackButton && !viewModel.searchBarVisible ? View.VISIBLE : View.GONE}"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
|
@ -167,43 +165,39 @@
|
|||
app:layout_constraintBottom_toBottomOf="@id/ephemeral_enabled"/>
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/show_menu"
|
||||
android:onClick="@{showMenuClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:padding="15dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:src="@drawable/dots_three_vertical"
|
||||
android:contentDescription="@string/content_description_show_popup_menu"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:visibility="@{viewModel.isCallConversation ? View.GONE : View.VISIBLE}"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:tint="?attr/color_main2_500"/>
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/start_call"
|
||||
android:onClick="@{() -> viewModel.startCall()}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/phone"
|
||||
android:contentDescription="@string/content_description_call_start"
|
||||
android:visibility="@{viewModel.isCallConversation || viewModel.isReadOnly || viewModel.searchBarVisible ? View.GONE : View.VISIBLE}"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/show_menu"
|
||||
app:tint="?attr/color_main2_500" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/cancel_search"
|
||||
android:onClick="@{() -> viewModel.closeSearchBar()}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_cancel_filter"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:layout_constraintBottom_toBottomOf="@id/search"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/search"
|
||||
|
|
@ -240,30 +234,28 @@
|
|||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/search_up"
|
||||
android:onClick="@{() -> viewModel.searchUp()}"
|
||||
android:enabled="@{viewModel.searchFilter.length() > 0}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_up"
|
||||
android:contentDescription="@string/content_description_chat_search_message_up"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:layout_constraintBottom_toBottomOf="@id/search"
|
||||
app:layout_constraintEnd_toStartOf="@id/search_down"
|
||||
app:layout_constraintTop_toTopOf="@id/search"
|
||||
app:tint="@color/icon_color_selector" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/search_down"
|
||||
android:onClick="@{() -> viewModel.searchDown()}"
|
||||
android:enabled="@{viewModel.searchFilter.length() > 0 && viewModel.canSearchDown}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_down"
|
||||
android:contentDescription="@string/content_description_chat_search_message_down"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:layout_constraintBottom_toBottomOf="@id/search"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/search"
|
||||
|
|
|
|||
|
|
@ -23,15 +23,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -18,15 +18,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -50,15 +50,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/invisible_title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -23,15 +23,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -23,15 +23,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:padding="15dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
|
|
|||
|
|
@ -76,15 +76,14 @@
|
|||
app:layout_constraintBottom_toBottomOf="parent" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/participant_menu"
|
||||
android:onClick="@{() -> model.openMenu(participantMenu)}"
|
||||
android:layout_width="@dimen/big_icon_size"
|
||||
android:layout_height="@dimen/big_icon_size"
|
||||
android:src="@drawable/dots_three_vertical"
|
||||
android:padding="10dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:contentDescription="@string/content_description_show_popup_menu"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:visibility="@{model.showMenu ? View.VISIBLE : View.GONE}"
|
||||
app:tint="?attr/color_grey_800"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
|||
|
|
@ -30,16 +30,14 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:visibility="@{viewModel.showBackButton ? View.VISIBLE : View.GONE}"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/invisible_title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
@ -57,16 +55,15 @@
|
|||
app:layout_constraintStart_toEndOf="@id/back"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
||||
<ImageView
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:onClick="@{() -> viewModel.editContact()}"
|
||||
android:id="@+id/edit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:padding="15dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:src="@drawable/pencil_simple"
|
||||
android:contentDescription="@string/content_description_contact_edit"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:visibility="@{viewModel.isStored ? View.VISIBLE : View.GONE}"
|
||||
app:tint="?attr/color_main2_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/invisible_title"
|
||||
|
|
|
|||
|
|
@ -25,15 +25,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -56,15 +56,13 @@
|
|||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
|
@ -105,30 +103,26 @@
|
|||
app:layout_constraintStart_toEndOf="@id/back"/>
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/share"
|
||||
android:onClick="@{shareClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/share_network"
|
||||
android:contentDescription="@string/content_description_share_file"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:visibility="@{sharedViewModel.mediaViewerFullScreenMode || viewModel.isCurrentlyDisplayedFileFromEphemeralMessage ? View.GONE : View.VISIBLE}"
|
||||
app:tint="@color/gray_main2_500"
|
||||
app:layout_constraintEnd_toStartOf="@id/save"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/save"
|
||||
android:onClick="@{exportClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/download_simple"
|
||||
android:contentDescription="@string/content_description_save_file"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:visibility="@{sharedViewModel.mediaViewerFullScreenMode || viewModel.isCurrentlyDisplayedFileFromEphemeralMessage ? View.GONE : View.VISIBLE}"
|
||||
app:tint="@color/gray_main2_500"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
|||
|
|
@ -94,15 +94,13 @@
|
|||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
|
@ -143,30 +141,26 @@
|
|||
app:layout_constraintStart_toEndOf="@id/back"/>
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/share"
|
||||
android:onClick="@{shareClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/share_network"
|
||||
android:contentDescription="@string/content_description_share_file"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:visibility="@{viewModel.fullScreenMode || viewModel.isFromEphemeralMessage ? View.GONE : View.VISIBLE}"
|
||||
app:tint="@color/gray_main2_500"
|
||||
app:layout_constraintEnd_toStartOf="@id/save"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/save"
|
||||
android:onClick="@{() -> viewModel.exportToMediaStore()}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/download_simple"
|
||||
android:contentDescription="@string/content_description_save_file"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:visibility="@{viewModel.fullScreenMode || viewModel.isFromEphemeralMessage ? View.GONE : View.VISIBLE}"
|
||||
app:tint="@color/gray_main2_500"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
|||
|
|
@ -22,15 +22,13 @@
|
|||
android:background="?attr/color_main2_000">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:adjustViewBounds="true"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
|
|
|||
|
|
@ -29,15 +29,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -38,15 +38,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -30,16 +30,14 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:padding="15dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:visibility="@{viewModel.showBackButton ? View.VISIBLE : View.GONE}"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/invisible_title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
@ -58,15 +56,13 @@
|
|||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:onClick="@{menuClickListener}"
|
||||
android:id="@+id/menu"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:padding="15dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:src="@drawable/dots_three_vertical"
|
||||
android:contentDescription="@string/content_description_show_popup_menu"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main2_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/invisible_title"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
|||
|
|
@ -75,15 +75,13 @@
|
|||
app:layout_constraintBottom_toBottomOf="@id/avatar"/>
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/search_toggle"
|
||||
android:onClick="@{() -> viewModel.openSearchBar()}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/magnifying_glass"
|
||||
android:adjustViewBounds="true"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:contentDescription="@string/content_description_open_filter"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
|
|
@ -92,15 +90,13 @@
|
|||
app:tint="?attr/color_on_main" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/extra_action"
|
||||
android:onClick="@{extraActionClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:padding="15dp"
|
||||
android:src="@{extraActionIcon, default=@drawable/dots_three_vertical}"
|
||||
android:adjustViewBounds="true"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:contentDescription="@{extraActionContentDescription}"
|
||||
android:visibility="@{!viewModel.searchBarVisible && enableExtraAction ? View.VISIBLE : View.GONE, default=gone}"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
|
|
@ -110,15 +106,13 @@
|
|||
app:tint="?attr/color_on_main" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/cancel_search"
|
||||
android:onClick="@{() -> viewModel.closeSearchBar()}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="5dp"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:adjustViewBounds="true"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:contentDescription="@string/content_description_cancel_filter"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
app:layout_constraintBottom_toBottomOf="@id/search"
|
||||
|
|
@ -159,15 +153,13 @@
|
|||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/clear_field"
|
||||
android:onClick="@{() -> viewModel.clearFilter()}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/x"
|
||||
android:adjustViewBounds="true"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:contentDescription="@string/content_description_clear_filter"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
app:layout_constraintBottom_toBottomOf="@id/search"
|
||||
|
|
|
|||
|
|
@ -35,15 +35,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:padding="15dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -35,15 +35,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:visibility="@{viewModel.showBackButton ? View.VISIBLE : View.GONE}"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
|
|
@ -62,15 +60,13 @@
|
|||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/edit"
|
||||
android:onClick="@{editClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:padding="15dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:src="@drawable/pencil_simple"
|
||||
android:contentDescription="@string/content_description_meeting_edit"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:visibility="@{viewModel.isEditable ? View.VISIBLE : View.GONE}"
|
||||
app:tint="?attr/color_main2_500"
|
||||
app:layout_constraintStart_toEndOf="@id/title"
|
||||
|
|
@ -79,15 +75,13 @@
|
|||
app:layout_constraintTop_toTopOf="@id/title" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/menu"
|
||||
android:onClick="@{menuClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:padding="15dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:src="@drawable/dots_three_vertical"
|
||||
android:contentDescription="@string/content_description_show_popup_menu"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main2_500"
|
||||
app:layout_constraintStart_toEndOf="@id/edit"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
|||
|
|
@ -35,15 +35,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:padding="15dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -19,15 +19,13 @@
|
|||
android:background="@color/gray_900">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
|
|
|||
|
|
@ -112,15 +112,13 @@
|
|||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
|
@ -161,30 +159,26 @@
|
|||
app:layout_constraintStart_toEndOf="@id/back"/>
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/share"
|
||||
android:onClick="@{shareClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/share_network"
|
||||
android:contentDescription="@string/content_description_share_file"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:visibility="@{viewModel.isUsingSmffFileFormat ? View.GONE : View.VISIBLE}"
|
||||
app:tint="@color/gray_main2_500"
|
||||
app:layout_constraintEnd_toStartOf="@id/save"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/save"
|
||||
android:onClick="@{exportClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/download_simple"
|
||||
android:contentDescription="@string/content_description_save_file"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:visibility="@{viewModel.isUsingSmffFileFormat ? View.GONE : View.VISIBLE}"
|
||||
app:tint="@color/gray_main2_500"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
|||
|
|
@ -33,15 +33,13 @@
|
|||
app:constraint_referenced_ids="cancel_search, search, clear_field" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/title"
|
||||
|
|
@ -61,16 +59,14 @@
|
|||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/search_toggle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:onClick="@{() -> viewModel.openSearchBar()}"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/magnifying_glass"
|
||||
android:adjustViewBounds="true"
|
||||
android:contentDescription="@string/content_description_open_filter"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
android:visibility="@{viewModel.searchBarVisible ? View.GONE : View.VISIBLE}"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
@ -78,16 +74,13 @@
|
|||
app:tint="?attr/color_main2_500" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/cancel_search"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="5dp"
|
||||
android:onClick="@{() -> viewModel.closeSearchBar()}"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:adjustViewBounds="true"
|
||||
android:contentDescription="@string/content_description_cancel_filter"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:layout_constraintBottom_toBottomOf="@id/search"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/search"
|
||||
|
|
@ -122,16 +115,14 @@
|
|||
</com.google.android.material.textfield.TextInputLayout>
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/clear_field"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginEnd="5dp"
|
||||
android:onClick="@{() -> viewModel.clearFilter()}"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/x"
|
||||
android:adjustViewBounds="true"
|
||||
android:contentDescription="@string/content_description_clear_filter"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:layout_constraintBottom_toBottomOf="@id/search"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/search"
|
||||
|
|
|
|||
|
|
@ -19,15 +19,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -21,15 +21,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -18,15 +18,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -31,15 +31,13 @@
|
|||
android:background="?attr/color_background_contrast_in_dark_mode">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintBottom_toBottomOf="@id/title"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
|
|
|||
|
|
@ -19,14 +19,13 @@
|
|||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:layout_width="@dimen/top_bar_height"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:visibility="invisible"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main2_500"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"/>
|
||||
|
|
|
|||
|
|
@ -36,15 +36,13 @@
|
|||
android:visibility="@{viewModel.multipleSelectionMode ? View.VISIBLE : View.GONE, default=gone}" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:adjustViewBounds="true"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
|
|
|||
|
|
@ -33,15 +33,13 @@
|
|||
android:visibility="@{viewModel.multipleSelectionMode ? View.VISIBLE : View.GONE, default=gone}" />
|
||||
|
||||
<ImageView
|
||||
style="@style/icon_top_bar_button_style"
|
||||
android:id="@+id/back"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/top_bar_height"
|
||||
android:adjustViewBounds="true"
|
||||
android:onClick="@{backClickListener}"
|
||||
android:padding="15dp"
|
||||
android:src="@drawable/caret_left"
|
||||
android:contentDescription="@string/content_description_go_back_icon"
|
||||
android:background="@drawable/circle_transparent_button_background"
|
||||
app:tint="?attr/color_main1_500"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
|
|
|||
|
|
@ -127,6 +127,15 @@
|
|||
<item name="android:maxLines">1</item>
|
||||
<item name="android:ellipsize">end</item>
|
||||
</style>
|
||||
<style name="icon_top_bar_button_style">
|
||||
<item name="android:layout_marginTop">2dp</item>
|
||||
<item name="android:layout_marginBottom">2dp</item>
|
||||
<item name="android:layout_marginStart">2dp</item>
|
||||
<item name="android:layout_marginEnd">2dp</item>
|
||||
<item name="android:padding">15dp</item>
|
||||
<item name="android:adjustViewBounds">true</item>
|
||||
<item name="android:background">@drawable/circle_transparent_button_background</item>
|
||||
</style>
|
||||
<style name="context_menu_action_label_style">
|
||||
<item name="android:fontFamily">@font/noto_sans</item>
|
||||
<item name="android:textSize">14sp</item>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue