feat(auth): 콘텐츠 보기 설정 시트를 추가한다

This commit is contained in:
2026-10-13 11:29:42 +09:00
parent de220019cc
commit 31861721f4
10 changed files with 465 additions and 0 deletions
@@ -0,0 +1,168 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fillViewport="true"
android:overScrollMode="never">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingHorizontal="@dimen/spacing_14"
android:paddingTop="@dimen/v2_content_preference_top_space"
android:paddingBottom="@dimen/spacing_8">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_title"
style="@style/V2ContentPreferenceTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:minHeight="@dimen/v2_content_preference_title_height"
android:text="@string/screen_content_settings_title" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_8"
android:gravity="center_vertical"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="@dimen/spacing_12"
android:layout_weight="1"
android:orientation="vertical">
<androidx.appcompat.widget.AppCompatTextView
style="@style/V2ContentPreferenceBody"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/bold"
android:text="@string/screen_content_settings_adult_toggle" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_adult_description"
style="@style/V2ContentPreferenceCaption"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_4"
android:text="@string/v2_content_preference_adult_on_description" />
</LinearLayout>
<androidx.appcompat.widget.AppCompatCheckedTextView
android:id="@+id/toggle_adult_content"
android:layout_width="@dimen/v2_content_preference_switch_width"
android:layout_height="@dimen/v2_content_preference_switch_width"
android:background="@null"
android:checkMark="@drawable/v2_content_preference_switch"
android:checked="true"
android:clickable="true"
android:contentDescription="@string/screen_content_settings_adult_toggle"
android:focusable="true"
android:gravity="center_vertical"
android:padding="0dp"
app:checkMarkTint="@null" />
</LinearLayout>
<LinearLayout
android:id="@+id/layout_preference"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/spacing_6">
<View
android:layout_width="match_parent"
android:layout_height="@dimen/v2_content_preference_divider_height"
android:layout_marginTop="@dimen/spacing_14"
android:background="@color/gray_800"
android:importantForAccessibility="no" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_preference_label"
style="@style/V2ContentPreferenceCaptionLabel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_12"
android:text="@string/v2_content_preference_label" />
<RadioGroup
android:id="@+id/radio_content_type"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_12"
android:checkedButton="@id/radio_all"
android:orientation="horizontal">
<androidx.appcompat.widget.AppCompatRadioButton
android:id="@+id/radio_all"
style="@style/V2ContentPreferenceRadio"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/screen_content_settings_all" />
<androidx.appcompat.widget.AppCompatRadioButton
android:id="@+id/radio_male"
style="@style/V2ContentPreferenceRadio"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/screen_content_settings_male" />
<androidx.appcompat.widget.AppCompatRadioButton
android:id="@+id/radio_female"
style="@style/V2ContentPreferenceRadio"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/screen_content_settings_female" />
</RadioGroup>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_14"
android:gravity="top"
android:orientation="horizontal">
<androidx.appcompat.widget.AppCompatImageView
android:layout_width="@dimen/spacing_16"
android:layout_height="@dimen/spacing_16"
android:layout_marginEnd="@dimen/spacing_6"
android:contentDescription="@null"
android:importantForAccessibility="no"
app:srcCompat="@drawable/ic_gift_info"
app:tint="@color/gray_400" />
<androidx.appcompat.widget.AppCompatTextView
style="@style/V2ContentPreferenceCaption"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/v2_content_preference_settings_note" />
</LinearLayout>
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/btn_confirm"
style="@style/V2ContentPreferenceBody"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_28"
android:background="@drawable/bg_creator_channel_donation_empty_button"
android:gravity="center"
android:minHeight="@dimen/v2_content_preference_button_height"
android:minWidth="0dp"
android:paddingHorizontal="@dimen/spacing_14"
android:paddingVertical="@dimen/spacing_14"
android:stateListAnimator="@null"
android:text="@string/v2_content_preference_confirm"
android:textAllCaps="false"
app:backgroundTint="@null" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>