2022-06-07 16:38:24 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2023-01-17 15:57:46 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@null"
|
|
|
|
android:orientation="vertical">
|
2022-06-07 16:38:24 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
2023-01-17 15:57:46 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginBottom="60dp"
|
|
|
|
android:baselineAligned="false"
|
|
|
|
android:orientation="horizontal">
|
2022-06-07 16:38:24 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
2023-01-17 15:57:46 +00:00
|
|
|
android:id="@+id/sort_subtitles_holder"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="50"
|
|
|
|
android:orientation="vertical">
|
2022-06-07 16:38:24 +00:00
|
|
|
|
|
|
|
<!-- android:id="@+id/subs_settings" android:foreground="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
-->
|
|
|
|
<LinearLayout
|
2023-01-17 15:57:46 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
tools:ignore="UseCompoundDrawables">
|
2022-06-07 16:38:24 +00:00
|
|
|
|
|
|
|
<FrameLayout
|
2023-01-17 15:57:46 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="40dp"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:background="@drawable/search_background"
|
|
|
|
android:visibility="visible">
|
2022-06-07 16:38:24 +00:00
|
|
|
|
|
|
|
<FrameLayout
|
2023-01-17 15:57:46 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginEnd="30dp">
|
2022-06-07 16:38:24 +00:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.SearchView
|
2023-01-17 15:57:46 +00:00
|
|
|
android:id="@+id/subtitles_search"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_vertical"
|
2022-06-07 16:38:24 +00:00
|
|
|
|
2023-01-17 15:57:46 +00:00
|
|
|
android:imeOptions="actionSearch"
|
|
|
|
android:inputType="text"
|
2022-06-07 16:38:24 +00:00
|
|
|
|
2023-01-17 15:57:46 +00:00
|
|
|
android:paddingStart="-10dp"
|
|
|
|
app:iconifiedByDefault="false"
|
2022-06-07 16:38:24 +00:00
|
|
|
|
2023-01-17 15:57:46 +00:00
|
|
|
app:queryBackground="@color/transparent"
|
|
|
|
app:queryHint="@string/search_hint"
|
|
|
|
app:searchIcon="@drawable/search_icon"
|
|
|
|
tools:ignore="RtlSymmetry">
|
2022-06-07 16:38:24 +00:00
|
|
|
|
|
|
|
<!--app:queryHint="@string/search_hint"
|
|
|
|
android:background="@color/grayBackground" @color/itemBackground
|
|
|
|
app:searchHintIcon="@drawable/search_white"
|
|
|
|
-->
|
|
|
|
</androidx.appcompat.widget.SearchView>
|
2023-01-17 15:57:46 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="end"
|
|
|
|
android:gravity="end">
|
|
|
|
|
|
|
|
<androidx.core.widget.ContentLoadingProgressBar
|
|
|
|
android:id="@+id/search_loading_bar"
|
|
|
|
style="@style/Widget.AppCompat.ProgressBar"
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:foregroundTint="@color/white"
|
|
|
|
android:progressTint="@color/white"
|
|
|
|
android:visibility="visible"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
</androidx.core.widget.ContentLoadingProgressBar>
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/year_btt"
|
|
|
|
style="@style/WhiteButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_vertical|end"
|
|
|
|
android:layout_marginEnd="20dp"
|
|
|
|
android:text="@string/none"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
2022-06-07 16:38:24 +00:00
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<ImageView
|
2023-01-17 15:57:46 +00:00
|
|
|
android:id="@+id/search_filter"
|
|
|
|
android:layout_width="25dp"
|
|
|
|
android:layout_height="25dp"
|
|
|
|
android:layout_gravity="end|center_vertical"
|
|
|
|
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/change_providers_img_des"
|
|
|
|
android:nextFocusLeft="@id/main_search"
|
|
|
|
android:nextFocusRight="@id/main_search"
|
|
|
|
android:nextFocusUp="@id/nav_rail_view"
|
|
|
|
android:nextFocusDown="@id/search_autofit_results"
|
|
|
|
android:src="@drawable/ic_baseline_tune_24"
|
|
|
|
app:tint="?attr/textColor" />
|
2022-06-07 16:38:24 +00:00
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2023-01-17 15:57:46 +00:00
|
|
|
<ListView
|
|
|
|
android:id="@+id/subtitle_adapter"
|
2023-01-17 15:11:49 +00:00
|
|
|
android:layout_width="match_parent"
|
2023-01-17 15:57:46 +00:00
|
|
|
android:layout_height="match_parent"
|
2023-01-17 15:11:49 +00:00
|
|
|
|
2023-01-17 15:57:46 +00:00
|
|
|
android:layout_rowWeight="1"
|
|
|
|
android:background="?attr/primaryBlackBackground"
|
|
|
|
android:nextFocusLeft="@id/sort_providers"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
|
|
|
android:requiresFadingEdge="vertical"
|
|
|
|
tools:listfooter="@layout/sort_bottom_footer_add_choice"
|
|
|
|
tools:listitem="@layout/sort_bottom_single_choice" />
|
2022-06-07 16:38:24 +00:00
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
2023-01-17 15:57:46 +00:00
|
|
|
android:id="@+id/apply_btt_holder"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="60dp"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:layout_marginTop="-60dp"
|
|
|
|
android:gravity="bottom|end"
|
|
|
|
android:orientation="horizontal">
|
2022-06-07 16:38:24 +00:00
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
2023-01-17 15:57:46 +00:00
|
|
|
android:id="@+id/apply_btt"
|
|
|
|
style="@style/WhiteButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical|end"
|
|
|
|
android:text="@string/sort_apply" />
|
2022-06-07 16:38:24 +00:00
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
2023-01-17 15:57:46 +00:00
|
|
|
android:id="@+id/cancel_btt"
|
|
|
|
style="@style/BlackButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical|end"
|
|
|
|
android:text="@string/sort_cancel" />
|
2022-06-07 16:38:24 +00:00
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|