discord-jadx/app/src/main/res/layout/widget_settings_voice.xml

59 lines
10 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" style="@style/res_2131952600_uikit_viewgroup_page">
<com.google.android.material.appbar.AppBarLayout style="@style/res_2131951638_apptheme_appbarlayout_flat">
<androidx.appcompat.widget.Toolbar app:navigationContentDescription="@string/back" app:navigationIcon="?attr/ic_action_bar_back" app:subtitle="@string/user_settings" app:title="@string/voice_and_video" style="@style/res_2131951666_apptheme_toolbar"/>
</com.google.android.material.appbar.AppBarLayout>
<androidx.core.widget.NestedScrollView style="@style/res_2131952598_uikit_viewgroup_nestedscrollview_appbarscrollingviewbehavior">
<LinearLayout style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<TextView android:id="@+id/settings_voice_input_header" android:text="@string/form_label_input" style="@style/res_2131952494_uikit_settings_item_header"/>
<RelativeLayout android:id="@+id/settings_voice_mode" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<TextView android:id="@+id/settings_voice_mode_header" android:text="@string/form_label_input_mode" style="@style/res_2131952496_uikit_settings_item_label"/>
<TextView android:id="@+id/settings_voice_mode_value" android:layout_below="@+id/settings_voice_mode_header" style="@style/res_2131952491_uikit_settings_item_addition"/>
<ImageView android:src="?attr/ic_navigate_next" android:layout_centerVertical="true" android:contentDescription="@string/form_label_input_mode" android:layout_marginEnd="16dp" android:layout_alignParentEnd="true" style="@style/res_2131952448_uikit_imageview"/>
</RelativeLayout>
<com.discord.views.CheckedSetting android:id="@+id/settings_voice_auto_vad_toggle" app:cs_text="@string/form_label_automatic_vad_mobile" app:cs_view_type="2" style="@style/res_2131952404_uikit_checkedsetting_themed"/>
<RelativeLayout android:id="@+id/settings_voice_sensitivity_wrap" android:paddingLeft="16dp" android:paddingTop="16dp" android:paddingRight="16dp" android:paddingBottom="16dp" style="@style/res_2131952587_uikit_viewgroup">
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?attr/primary_100" android:ellipsize="end" android:id="@+id/settings_voice_sensitivity_header" android:text="@string/form_label_sensitivty" android:maxLines="1" android:layout_alignBaseline="@+id/settings_voice_sensitivity_test_button" android:importantForAccessibility="no" android:layout_toStartOf="@+id/settings_voice_sensitivity_test_button" android:layout_alignParentStart="true" style="@style/res_2131952561_uikit_textview"/>
<com.google.android.material.button.MaterialButton android:textSize="@dimen/uikit_textsize_medium" android:textColor="?attr/primary_100" android:ellipsize="end" android:id="@+id/settings_voice_sensitivity_test_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/form_label_test_microphone" android:maxLines="1" android:layout_alignParentEnd="true" app:icon="?attr/ic_mic" app:iconTint="?attr/primary_100" style="@style/res_2131952472_uikit_material_button_white_outline"/>
<LinearLayout android:id="@+id/settings_voice_sensitivity_testing_container" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/settings_voice_sensitivity_header" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<FrameLayout android:layout_width="match_parent" android:layout_height="wrap_content">
<SeekBar android:id="@+id/settings_voice_sensitivity_manual" android:layout_height="32dp" android:layout_marginTop="4dp" android:progressDrawable="@drawable/drawable_voice_sensitivity_progress" android:contentDescription="@string/form_label_sensitivty" style="@style/res_2131952486_uikit_seekbar"/>
<View android:layout_gravity="center_vertical" android:id="@+id/settings_voice_sensitivity_automatic" android:background="@drawable/drawable_voice_indicator_speaking" android:layout_width="match_parent" android:layout_height="8dp" android:layout_marginLeft="2dp" android:layout_marginTop="4dp" android:layout_marginRight="2dp" android:layout_marginBottom="2dp" android:contentDescription="@string/form_label_sensitivty"/>
</FrameLayout>
<TextView android:id="@+id/settings_voice_sensitivity_label" android:text="@string/form_help_automatic_vad" style="@style/res_2131952561_uikit_textview"/>
</LinearLayout>
</RelativeLayout>
<View android:layout_marginTop="0dp" style="@style/res_2131952489_uikit_settings_divider"/>
<TextView android:id="@+id/settings_voice_output_header" android:text="@string/form_label_output" style="@style/res_2131952494_uikit_settings_item_header"/>
<LinearLayout android:orientation="vertical" android:id="@+id/settings_voice_output_volume_wrap" android:background="@drawable/drawable_bg_settings_item" android:padding="16dp" android:layout_width="match_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/uikit_textsize_large" android:textColor="?attr/primary_100" android:text="@string/form_label_volume" android:labelFor="@+id/settings_voice_output_volume" style="@style/res_2131952561_uikit_textview"/>
<SeekBar android:id="@+id/settings_voice_output_volume" android:layout_marginTop="4dp" style="@style/res_2131952486_uikit_seekbar"/>
</LinearLayout>
<View android:layout_marginTop="0dp" style="@style/res_2131952489_uikit_settings_divider"/>
<com.discord.utilities.view.text.LinkifiedTextView android:id="@+id/settings_voice_video_troubleshooting_guide" android:text="@string/form_help_voice_video_troubleshooting_guide" style="@style/res_2131952497_uikit_settings_item_subtext"/>
<View android:layout_marginTop="0dp" style="@style/res_2131952489_uikit_settings_divider"/>
<TextView android:id="@+id/settings_voice_overlay_header" android:text="@string/settings_games_overlay" style="@style/res_2131952494_uikit_settings_item_header"/>
<com.discord.views.CheckedSetting android:id="@+id/settings_voice_overlay_toggle" app:cs_subtext="@string/overlay_mobile_toggle_desc" app:cs_text="@string/overlay_mobile_toggle_label" app:cs_view_type="2" style="@style/res_2131952404_uikit_checkedsetting_themed"/>
<View style="@style/res_2131952489_uikit_settings_divider"/>
<TextView android:id="@+id/settings_voice_processing_header" android:text="@string/form_label_voice_processing" style="@style/res_2131952494_uikit_settings_item_header"/>
<com.discord.views.CheckedSetting android:id="@+id/settings_voice_noise_cancellation_toggle" app:cs_subtext="@string/user_settings_noise_cancellation_description" app:cs_text="@string/user_settings_noise_cancellation" app:cs_view_type="2" style="@style/res_2131952404_uikit_checkedsetting_themed"/>
<TextView android:id="@+id/settings_voice_krisp_info" android:text="@string/learn_more_link" android:drawablePadding="12dp" app:drawableStartCompat="?attr/ic_krisp_logo" style="@style/res_2131952495_uikit_settings_item_icon"/>
<com.discord.views.CheckedSetting android:id="@+id/settings_voice_echo_cancellation_toggle" app:cs_text="@string/echo_cancellation" app:cs_view_type="2" style="@style/res_2131952404_uikit_checkedsetting_themed"/>
<com.discord.views.CheckedSetting android:id="@+id/settings_voice_noise_suppression_toggle" app:cs_text="@string/noise_suppression" app:cs_view_type="2" style="@style/res_2131952404_uikit_checkedsetting_themed"/>
<com.discord.views.CheckedSetting android:id="@+id/settings_voice_gain_control_toggle" app:cs_text="@string/automatic_gain_control" app:cs_view_type="2" style="@style/res_2131952404_uikit_checkedsetting_themed"/>
<com.discord.views.CheckedSetting android:id="@+id/settings_voice_krisp_vad_toggle" app:cs_subtext="@string/user_settings_disable_advanced_voice_activity" app:cs_text="@string/advanced_voice_activity" app:cs_view_type="2" style="@style/res_2131952404_uikit_checkedsetting_themed"/>
<View style="@style/res_2131952489_uikit_settings_divider"/>
<LinearLayout android:id="@+id/settings_voice_video_container" style="@style/res_2131952592_uikit_viewgroup_linearlayout">
<TextView android:id="@+id/settings_voice_video_header" android:text="@string/video" style="@style/res_2131952494_uikit_settings_item_header"/>
<com.discord.views.CheckedSetting android:id="@+id/settings_voice_enable_hardware_scaling_toggle" app:cs_subtext="@string/mobile_enable_hardware_scaling_desc" app:cs_text="@string/mobile_enable_hardware_scaling" app:cs_view_type="2" style="@style/res_2131952404_uikit_checkedsetting_themed"/>
</LinearLayout>
<View style="@style/res_2131952489_uikit_settings_divider"/>
<TextView android:id="@+id/settings_voice_opensl_header" android:text="@string/form_label_android_opensl" style="@style/res_2131952494_uikit_settings_item_header"/>
<TextView android:id="@+id/settings_voice_opensles_help" style="@style/res_2131952497_uikit_settings_item_subtext"/>
<com.discord.views.CheckedSetting android:id="@+id/settings_voice_opensles_default" app:cs_subtext="@string/form_label_android_opensl_default_desc" app:cs_text="@string/form_label_android_opensl_default" app:cs_view_type="1" style="@style/res_2131952404_uikit_checkedsetting_themed"/>
<com.discord.views.CheckedSetting android:id="@+id/settings_voice_opensles_force_enabled" app:cs_subtext="@string/form_label_android_opensl_force_enabled_desc" app:cs_text="@string/form_label_android_opensl_force_enabled" app:cs_view_type="1" style="@style/res_2131952404_uikit_checkedsetting_themed"/>
<com.discord.views.CheckedSetting android:id="@+id/settings_voice_opensles_force_disabled" app:cs_subtext="@string/form_label_android_opensl_force_disabled_desc" app:cs_text="@string/form_label_android_opensl_force_disabled" app:cs_view_type="1" style="@style/res_2131952404_uikit_checkedsetting_themed"/>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</androidx.coordinatorlayout.widget.CoordinatorLayout>