|
|
@@ -14,94 +14,6 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
- <androidx.appcompat.widget.Toolbar
|
|
|
- android:id="@+id/tool_bar"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
- app:navigationIcon="@drawable/icon_back">
|
|
|
-
|
|
|
- <TextView
|
|
|
- style="@style/Tool_Bar_Title_Txt"
|
|
|
- android:text="@string/audio_recover_title" />
|
|
|
-
|
|
|
- <ImageView
|
|
|
- imageDraw="@{audioRecoverViewModel.checkAll ? @drawable/icon_image_recover_checked : @drawable/icon_image_recover_uncheck}"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_gravity="right"
|
|
|
- android:layout_marginEnd="@dimen/app_common_page_horizontal_padding"
|
|
|
- android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
- android:onClick="@{()->audioRecoverViewModel.onCheckAllClick(!audioRecoverViewModel.checkAll)}"
|
|
|
- tools:src="@drawable/icon_image_recover_uncheck" />
|
|
|
-
|
|
|
- </androidx.appcompat.widget.Toolbar>
|
|
|
-
|
|
|
- <View
|
|
|
- android:id="@+id/v_filter"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="0dp"
|
|
|
- app:layout_constraintDimensionRatio="360:36"
|
|
|
- app:layout_constraintTop_toBottomOf="@+id/tool_bar" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_date_filter"
|
|
|
- drawableEnd="@{audioRecoverViewModel.isDateFilterArrowUp ? @drawable/icon_filter_arrow_up : @drawable/icon_filter_arrow_down}"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="@string/audio_recover_date_filter"
|
|
|
- android:textColor="@{audioRecoverViewModel.dataFilterCondition !=null ? @color/colorPrimary : @color/tab_un_select_text_color}"
|
|
|
- android:textSize="14sp"
|
|
|
- app:drawableEndCompat="@drawable/icon_filter_arrow_down"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/v_filter"
|
|
|
- app:layout_constraintLeft_toLeftOf="@+id/v_filter"
|
|
|
- app:layout_constraintRight_toLeftOf="@+id/v_line"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/v_filter" />
|
|
|
-
|
|
|
- <View
|
|
|
- android:id="@+id/v_date_filter"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="0dp"
|
|
|
- android:onClick="@{()->audioRecoverViewModel.onDateFilterClick()}"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/v_filter"
|
|
|
- app:layout_constraintEnd_toStartOf="@id/v_line"
|
|
|
- app:layout_constraintStart_toStartOf="@id/v_filter"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/v_filter" />
|
|
|
-
|
|
|
-
|
|
|
- <View
|
|
|
- android:id="@+id/v_line"
|
|
|
- android:layout_width="1dp"
|
|
|
- android:layout_height="20dp"
|
|
|
- android:background="#F5F5F5"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/v_filter"
|
|
|
- app:layout_constraintLeft_toRightOf="@+id/tv_date_filter"
|
|
|
- app:layout_constraintRight_toLeftOf="@+id/tv_size_sort"
|
|
|
- app:layout_constraintTop_toTopOf="@id/v_filter" />
|
|
|
-
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_size_sort"
|
|
|
- drawableEnd="@{audioRecoverViewModel.isSizeSortArrowUp ? @drawable/icon_filter_arrow_up : @drawable/icon_filter_arrow_down}"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:text="@string/audio_recover_size_sort"
|
|
|
- android:textColor="#666666"
|
|
|
- android:textSize="14sp"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/v_filter"
|
|
|
- app:layout_constraintLeft_toRightOf="@+id/v_line"
|
|
|
- app:layout_constraintRight_toRightOf="@+id/v_filter"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/v_filter" />
|
|
|
-
|
|
|
- <View
|
|
|
- android:id="@+id/v_size_sort"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_height="0dp"
|
|
|
- android:onClick="@{()->audioRecoverViewModel.onSizeSortClick(!audioRecoverViewModel.isSizeSortArrowUp)}"
|
|
|
- app:layout_constraintBottom_toBottomOf="@+id/v_filter"
|
|
|
- app:layout_constraintEnd_toEndOf="@+id/v_filter"
|
|
|
- app:layout_constraintStart_toEndOf="@+id/v_line"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/v_filter" />
|
|
|
-
|
|
|
<include
|
|
|
android:id="@+id/layout_trial"
|
|
|
layout="@layout/layout_trial"
|
|
|
@@ -196,13 +108,108 @@
|
|
|
tools:background="@drawable/bg_common_btn"
|
|
|
tools:text="立即导出" />
|
|
|
|
|
|
-
|
|
|
<androidx.constraintlayout.widget.Group
|
|
|
isGone="@{!audioRecoverViewModel.showTrialView}"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
app:constraint_referenced_ids="layout_trial,v_go_recover,iv_go_recover,tv_go_recover,iv_go_recover_right" />
|
|
|
|
|
|
+ <androidx.appcompat.widget.Toolbar
|
|
|
+ android:id="@+id/tool_bar"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/white"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:navigationIcon="@drawable/icon_back">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ style="@style/Tool_Bar_Title_Txt"
|
|
|
+ android:text="@string/audio_recover_title" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ imageDraw="@{audioRecoverViewModel.checkAll ? @drawable/icon_image_recover_checked : @drawable/icon_image_recover_uncheck}"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="right"
|
|
|
+ android:layout_marginEnd="@dimen/app_common_page_horizontal_padding"
|
|
|
+ android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
+ android:onClick="@{()->audioRecoverViewModel.onCheckAllClick(!audioRecoverViewModel.checkAll)}"
|
|
|
+ tools:src="@drawable/icon_image_recover_uncheck" />
|
|
|
+
|
|
|
+ </androidx.appcompat.widget.Toolbar>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/v_filter"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:background="@color/white"
|
|
|
+ app:layout_constraintDimensionRatio="360:36"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tool_bar" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:background="@color/black70"
|
|
|
+ app:isGone="@{!audioRecoverViewModel.isDateFilterArrowUp}"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/v_filter" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_date_filter"
|
|
|
+ drawableEnd="@{audioRecoverViewModel.isDateFilterArrowUp ? @drawable/icon_filter_arrow_up : @drawable/icon_filter_arrow_down}"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/audio_recover_date_filter"
|
|
|
+ android:textColor="@{audioRecoverViewModel.dataFilterCondition !=null ? @color/colorPrimary : @color/tab_un_select_text_color}"
|
|
|
+ android:textSize="14sp"
|
|
|
+ app:drawableEndCompat="@drawable/icon_filter_arrow_down"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/v_filter"
|
|
|
+ app:layout_constraintLeft_toLeftOf="@+id/v_filter"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/v_line"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/v_filter" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/v_date_filter"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:onClick="@{()->audioRecoverViewModel.onDateFilterClick()}"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/v_filter"
|
|
|
+ app:layout_constraintEnd_toStartOf="@id/v_line"
|
|
|
+ app:layout_constraintStart_toStartOf="@id/v_filter"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/v_filter" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/v_line"
|
|
|
+ android:layout_width="1dp"
|
|
|
+ android:layout_height="20dp"
|
|
|
+ android:background="#F5F5F5"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/v_filter"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/tv_date_filter"
|
|
|
+ app:layout_constraintRight_toLeftOf="@+id/tv_size_sort"
|
|
|
+ app:layout_constraintTop_toTopOf="@id/v_filter" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_size_sort"
|
|
|
+ drawableEnd="@{audioRecoverViewModel.isSizeSortArrowUp ? @drawable/icon_filter_arrow_up : @drawable/icon_filter_arrow_down}"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="@string/audio_recover_size_sort"
|
|
|
+ android:textColor="#666666"
|
|
|
+ android:textSize="14sp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/v_filter"
|
|
|
+ app:layout_constraintLeft_toRightOf="@+id/v_line"
|
|
|
+ app:layout_constraintRight_toRightOf="@+id/v_filter"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/v_filter" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/v_size_sort"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:onClick="@{()->audioRecoverViewModel.onSizeSortClick(!audioRecoverViewModel.isSizeSortArrowUp)}"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/v_filter"
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/v_filter"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/v_line"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/v_filter" />
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
</layout>
|