2021-08-06 20:55:11 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2022-01-29 18:57:19 +00:00
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
2021-08-06 20:55:11 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:id="@+id/subs_root"
|
2022-01-29 18:57:19 +00:00
|
|
|
android:background="?attr/primaryBlackBackground">
|
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
<TextView
|
2021-08-22 17:14:48 +00:00
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:paddingEnd="20dp"
|
2021-08-06 20:55:11 +00:00
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:layout_marginBottom="10dp"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:text="@string/subtitles_settings"
|
|
|
|
android:textSize="20sp"
|
|
|
|
android:textColor="?attr/textColor"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_rowWeight="1"
|
2022-01-29 18:57:19 +00:00
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="75sp">
|
2021-08-06 20:55:11 +00:00
|
|
|
|
2021-08-07 01:53:45 +00:00
|
|
|
<ImageView
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:src="@drawable/subtitles_preview_background"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2022-01-29 18:57:19 +00:00
|
|
|
android:contentDescription="@string/preview_background_img_des" />
|
|
|
|
|
2021-08-07 01:53:45 +00:00
|
|
|
<com.google.android.exoplayer2.ui.SubtitleView
|
|
|
|
android:id="@+id/subtitle_text"
|
|
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:foregroundGravity="center"
|
2022-01-29 18:57:19 +00:00
|
|
|
android:layout_height="match_parent" />
|
2021-08-07 01:53:45 +00:00
|
|
|
</FrameLayout>
|
2021-08-06 20:55:11 +00:00
|
|
|
|
2021-08-07 01:53:45 +00:00
|
|
|
<TextView
|
2021-12-21 18:58:07 +00:00
|
|
|
android:nextFocusDown="@id/subs_font_size"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
|
|
|
|
2021-08-07 01:53:45 +00:00
|
|
|
android:id="@+id/subs_font"
|
|
|
|
android:text="@string/subs_font"
|
2022-01-29 18:57:19 +00:00
|
|
|
style="@style/SettingsItem" />
|
|
|
|
|
2021-09-16 12:46:21 +00:00
|
|
|
<TextView
|
2021-12-21 18:58:07 +00:00
|
|
|
android:nextFocusUp="@id/subs_font"
|
|
|
|
android:nextFocusDown="@id/subs_text_color"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
|
|
|
|
2021-09-16 12:46:21 +00:00
|
|
|
android:id="@+id/subs_font_size"
|
|
|
|
android:text="@string/subs_font_size"
|
2022-01-29 18:57:19 +00:00
|
|
|
style="@style/SettingsItem" />
|
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
<TextView
|
2021-12-21 18:58:07 +00:00
|
|
|
android:nextFocusUp="@id/subs_font_size"
|
|
|
|
android:nextFocusDown="@id/subs_outline_color"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
android:id="@+id/subs_text_color"
|
|
|
|
android:text="@string/subs_text_color"
|
2022-01-29 18:57:19 +00:00
|
|
|
style="@style/SettingsItem" />
|
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
<TextView
|
2021-12-21 18:58:07 +00:00
|
|
|
android:nextFocusUp="@id/subs_text_color"
|
|
|
|
android:nextFocusDown="@id/subs_background_color"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
android:id="@+id/subs_outline_color"
|
|
|
|
android:text="@string/subs_outline_color"
|
2022-01-29 18:57:19 +00:00
|
|
|
style="@style/SettingsItem" />
|
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
<TextView
|
2021-12-21 18:58:07 +00:00
|
|
|
android:nextFocusUp="@id/subs_outline_color"
|
|
|
|
android:nextFocusDown="@id/subs_window_color"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
android:id="@+id/subs_background_color"
|
|
|
|
android:text="@string/subs_background_color"
|
2022-01-29 18:57:19 +00:00
|
|
|
style="@style/SettingsItem" />
|
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
<TextView
|
2021-12-21 18:58:07 +00:00
|
|
|
android:nextFocusUp="@id/subs_background_color"
|
|
|
|
android:nextFocusDown="@id/subs_edge_type"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
android:id="@+id/subs_window_color"
|
|
|
|
android:text="@string/subs_window_color"
|
2022-01-29 18:57:19 +00:00
|
|
|
style="@style/SettingsItem" />
|
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
<TextView
|
2021-12-21 18:58:07 +00:00
|
|
|
android:nextFocusUp="@id/subs_window_color"
|
|
|
|
android:nextFocusDown="@id/subs_subtitle_elevation"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
android:id="@+id/subs_edge_type"
|
|
|
|
android:text="@string/subs_edge_type"
|
2022-01-29 18:57:19 +00:00
|
|
|
style="@style/SettingsItem" />
|
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
<TextView
|
2021-12-21 18:58:07 +00:00
|
|
|
android:nextFocusUp="@id/subs_edge_type"
|
|
|
|
android:nextFocusDown="@id/subs_auto_select_language"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
android:id="@+id/subs_subtitle_elevation"
|
|
|
|
android:text="@string/subs_subtitle_elevation"
|
2022-01-29 18:57:19 +00:00
|
|
|
style="@style/SettingsItem" />
|
|
|
|
|
2021-08-22 17:14:48 +00:00
|
|
|
<TextView
|
2021-12-21 18:58:07 +00:00
|
|
|
android:nextFocusUp="@id/subs_subtitle_elevation"
|
|
|
|
android:nextFocusDown="@id/subs_download_languages"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
|
|
|
|
2021-08-22 17:14:48 +00:00
|
|
|
android:id="@+id/subs_auto_select_language"
|
|
|
|
android:text="@string/subs_auto_select_language"
|
2022-01-29 18:57:19 +00:00
|
|
|
style="@style/SettingsItem" />
|
|
|
|
|
2021-08-22 17:14:48 +00:00
|
|
|
<TextView
|
2021-12-21 18:58:07 +00:00
|
|
|
android:nextFocusUp="@id/subs_auto_select_language"
|
|
|
|
android:nextFocusDown="@id/apply_btt"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
|
|
|
|
2021-08-22 17:14:48 +00:00
|
|
|
android:id="@+id/subs_download_languages"
|
|
|
|
android:text="@string/subs_download_languages"
|
2022-01-29 18:57:19 +00:00
|
|
|
style="@style/SettingsItem" />
|
|
|
|
|
2021-08-22 17:14:48 +00:00
|
|
|
<TextView
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/subs_hold_to_reset_to_default"
|
|
|
|
android:textSize="14sp"
|
|
|
|
|
|
|
|
android:textColor="?attr/textColor"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_rowWeight="1"
|
2022-01-29 18:57:19 +00:00
|
|
|
android:layout_height="wrap_content" />
|
2021-08-06 20:55:11 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:gravity="bottom|end"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="60dp">
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
2021-12-21 18:58:07 +00:00
|
|
|
android:nextFocusUp="@id/subs_download_languages"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
2021-08-06 20:55:11 +00:00
|
|
|
style="@style/WhiteButton"
|
|
|
|
android:layout_gravity="center_vertical|end"
|
|
|
|
android:visibility="visible"
|
|
|
|
android:text="@string/sort_apply"
|
|
|
|
android:id="@+id/apply_btt"
|
2021-12-21 18:58:07 +00:00
|
|
|
android:layout_width="wrap_content">
|
2022-01-29 18:57:19 +00:00
|
|
|
|
|
|
|
<requestFocus />
|
2021-12-21 18:58:07 +00:00
|
|
|
</com.google.android.material.button.MaterialButton>
|
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
<com.google.android.material.button.MaterialButton
|
2021-12-21 18:58:07 +00:00
|
|
|
android:nextFocusUp="@id/subs_download_languages"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
2021-08-06 20:55:11 +00:00
|
|
|
style="@style/BlackButton"
|
|
|
|
android:layout_gravity="center_vertical|end"
|
|
|
|
android:text="@string/sort_cancel"
|
|
|
|
android:id="@+id/cancel_btt"
|
2022-01-29 18:57:19 +00:00
|
|
|
android:layout_width="wrap_content" />
|
2021-08-06 20:55:11 +00:00
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|