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"
|
2022-06-03 16:41:21 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:id="@+id/subs_root"
|
2022-04-16 23:03:18 +00:00
|
|
|
android:layout_width="match_parent"
|
2022-06-03 16:41:21 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?attr/primaryBlackBackground">
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2022-06-03 16:41:21 +00:00
|
|
|
<LinearLayout
|
2022-04-16 23:03:18 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2022-06-03 16:41:21 +00:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_rowWeight="1"
|
|
|
|
android:layout_marginTop="20dp"
|
|
|
|
android:layout_marginBottom="10dp"
|
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:paddingEnd="20dp"
|
|
|
|
android:text="@string/subtitles_settings"
|
|
|
|
android:textColor="?attr/textColor"
|
|
|
|
android:textSize="20sp"
|
|
|
|
android:textStyle="bold" />
|
2022-01-29 18:57:19 +00:00
|
|
|
|
|
|
|
<FrameLayout
|
2022-06-03 16:41:21 +00:00
|
|
|
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
|
2022-06-03 16:41:21 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:contentDescription="@string/preview_background_img_des"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:src="@drawable/subtitles_preview_background" />
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2021-08-07 01:53:45 +00:00
|
|
|
<com.google.android.exoplayer2.ui.SubtitleView
|
2022-06-03 16:41:21 +00:00
|
|
|
android:id="@+id/subtitle_text"
|
2021-08-07 01:53:45 +00:00
|
|
|
|
2022-06-03 16:41:21 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:foregroundGravity="center" />
|
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
|
2022-06-03 16:41:21 +00:00
|
|
|
android:id="@+id/subs_font"
|
|
|
|
style="@style/SettingsItem"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
2021-12-21 18:58:07 +00:00
|
|
|
|
2022-06-03 16:41:21 +00:00
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
|
|
|
android:nextFocusDown="@id/subs_font_size"
|
|
|
|
android:text="@string/subs_font" />
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2021-09-16 12:46:21 +00:00
|
|
|
<TextView
|
2022-06-03 16:41:21 +00:00
|
|
|
android:id="@+id/subs_font_size"
|
|
|
|
style="@style/SettingsItem"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
2021-12-21 18:58:07 +00:00
|
|
|
|
2022-06-03 16:41:21 +00:00
|
|
|
android:nextFocusUp="@id/subs_font"
|
|
|
|
android:nextFocusDown="@id/subs_text_color"
|
|
|
|
android:text="@string/subs_font_size" />
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
<TextView
|
2022-06-03 16:41:21 +00:00
|
|
|
android:id="@+id/subs_text_color"
|
|
|
|
style="@style/SettingsItem"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
2021-12-21 18:58:07 +00:00
|
|
|
|
2022-06-03 16:41:21 +00:00
|
|
|
android:nextFocusUp="@id/subs_font_size"
|
|
|
|
android:nextFocusDown="@id/subs_outline_color"
|
|
|
|
android:text="@string/subs_text_color" />
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
<TextView
|
2022-06-03 16:41:21 +00:00
|
|
|
android:id="@+id/subs_outline_color"
|
|
|
|
style="@style/SettingsItem"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
2021-12-21 18:58:07 +00:00
|
|
|
|
2022-06-03 16:41:21 +00:00
|
|
|
android:nextFocusUp="@id/subs_text_color"
|
|
|
|
android:nextFocusDown="@id/subs_background_color"
|
|
|
|
android:text="@string/subs_outline_color" />
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
<TextView
|
2022-06-03 16:41:21 +00:00
|
|
|
android:id="@+id/subs_background_color"
|
|
|
|
style="@style/SettingsItem"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
2021-12-21 18:58:07 +00:00
|
|
|
|
2022-06-03 16:41:21 +00:00
|
|
|
android:nextFocusUp="@id/subs_outline_color"
|
|
|
|
android:nextFocusDown="@id/subs_window_color"
|
|
|
|
android:text="@string/subs_background_color" />
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
<TextView
|
2022-06-03 16:41:21 +00:00
|
|
|
android:id="@+id/subs_window_color"
|
|
|
|
style="@style/SettingsItem"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
2021-12-21 18:58:07 +00:00
|
|
|
|
2022-06-03 16:41:21 +00:00
|
|
|
android:nextFocusUp="@id/subs_background_color"
|
|
|
|
android:nextFocusDown="@id/subs_edge_type"
|
|
|
|
android:text="@string/subs_window_color" />
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
<TextView
|
2022-06-03 16:41:21 +00:00
|
|
|
android:id="@+id/subs_edge_type"
|
|
|
|
style="@style/SettingsItem"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
2021-12-21 18:58:07 +00:00
|
|
|
|
2022-06-03 16:41:21 +00:00
|
|
|
android:nextFocusUp="@id/subs_window_color"
|
|
|
|
android:nextFocusDown="@id/subs_subtitle_elevation"
|
|
|
|
android:text="@string/subs_edge_type" />
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2021-08-06 20:55:11 +00:00
|
|
|
<TextView
|
2022-06-03 16:41:21 +00:00
|
|
|
android:id="@+id/subs_subtitle_elevation"
|
|
|
|
style="@style/SettingsItem"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
2021-12-21 18:58:07 +00:00
|
|
|
|
2022-06-03 16:41:21 +00:00
|
|
|
android:nextFocusUp="@id/subs_edge_type"
|
|
|
|
android:nextFocusDown="@id/subs_auto_select_language"
|
|
|
|
android:text="@string/subs_subtitle_elevation" />
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2021-08-22 17:14:48 +00:00
|
|
|
<TextView
|
2022-06-03 16:41:21 +00:00
|
|
|
android:id="@+id/subs_auto_select_language"
|
|
|
|
style="@style/SettingsItem"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
2021-12-21 18:58:07 +00:00
|
|
|
|
2022-06-03 16:41:21 +00:00
|
|
|
android:nextFocusUp="@id/subs_subtitle_elevation"
|
|
|
|
android:nextFocusDown="@id/subs_download_languages"
|
|
|
|
android:text="@string/subs_auto_select_language" />
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2021-08-22 17:14:48 +00:00
|
|
|
<TextView
|
2022-06-03 16:41:21 +00:00
|
|
|
android:id="@+id/subs_download_languages"
|
|
|
|
style="@style/SettingsItem"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
|
|
|
|
|
|
|
android:nextFocusUp="@id/subs_auto_select_language"
|
|
|
|
android:nextFocusDown="@id/subtitles_remove_bloat"
|
|
|
|
android:text="@string/subs_download_languages" />
|
2021-12-21 18:58:07 +00:00
|
|
|
|
2022-06-03 16:41:21 +00:00
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
|
|
android:nextFocusUp="@id/subs_download_languages"
|
|
|
|
android:nextFocusDown="@id/subtitles_remove_captions"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
|
|
|
android:fontFamily="@font/google_sans"
|
|
|
|
style="@style/SettingsItem"
|
|
|
|
app:drawableEndCompat="@null"
|
|
|
|
android:id="@+id/subtitles_remove_bloat"
|
|
|
|
android:text="@string/subtitles_remove_bloat"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
|
|
android:nextFocusUp="@id/subtitles_remove_bloat"
|
|
|
|
android:nextFocusDown="@id/apply_btt"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
|
|
|
android:fontFamily="@font/google_sans"
|
|
|
|
style="@style/SettingsItem"
|
|
|
|
app:drawableEndCompat="@null"
|
|
|
|
android:id="@+id/subtitles_remove_captions"
|
|
|
|
android:text="@string/subtitles_remove_captions"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
2022-01-29 18:57:19 +00:00
|
|
|
|
2022-08-15 06:40:19 +00:00
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
|
|
android:nextFocusUp="@id/subtitles_remove_captions"
|
|
|
|
android:nextFocusDown="@id/apply_btt"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
|
|
|
android:fontFamily="@font/google_sans"
|
|
|
|
style="@style/SettingsItem"
|
|
|
|
app:drawableEndCompat="@null"
|
|
|
|
android:id="@+id/subtitles_filter_sub_lang"
|
|
|
|
android:text="@string/subtitles_filter_lang"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" />
|
|
|
|
|
2021-08-22 17:14:48 +00:00
|
|
|
<TextView
|
2022-06-03 16:41:21 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_rowWeight="1"
|
2021-08-22 17:14:48 +00:00
|
|
|
|
2022-06-03 16:41:21 +00:00
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/subs_hold_to_reset_to_default"
|
|
|
|
android:textColor="?attr/textColor"
|
|
|
|
android:textSize="14sp" />
|
2022-04-16 23:03:18 +00:00
|
|
|
|
|
|
|
<TextView
|
2022-06-03 16:41:21 +00:00
|
|
|
android:id="@+id/subs_import_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_rowWeight="1"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/subs_import_text"
|
|
|
|
android:textColor="?attr/textColor"
|
|
|
|
android:textSize="14sp" />
|
2021-08-06 20:55:11 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
2022-06-03 16:41:21 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="60dp"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:gravity="bottom|end"
|
|
|
|
android:orientation="horizontal">
|
2021-08-06 20:55:11 +00:00
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
2022-06-03 16:41:21 +00:00
|
|
|
android:id="@+id/apply_btt"
|
|
|
|
style="@style/WhiteButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical|end"
|
|
|
|
android:nextFocusRight="@id/cancel_btt"
|
|
|
|
android:nextFocusUp="@id/subtitles_remove_captions"
|
|
|
|
android:text="@string/sort_apply"
|
|
|
|
android:visibility="visible">
|
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
|
2022-06-03 16:41:21 +00:00
|
|
|
android:id="@+id/cancel_btt"
|
|
|
|
style="@style/BlackButton"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical|end"
|
|
|
|
android:nextFocusLeft="@id/apply_btt"
|
|
|
|
android:nextFocusUp="@id/subtitles_remove_captions"
|
|
|
|
android:text="@string/sort_cancel" />
|
2021-08-06 20:55:11 +00:00
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|