fix(chat): 대화 설정
- 대화 초기화 오른쪽에 30캔 안내 추가
This commit is contained in:
		@@ -910,7 +910,7 @@ class ChatRoomActivity : BaseActivity<ActivityChatRoomBinding>(
 | 
				
			|||||||
            layoutInflater = this.layoutInflater,
 | 
					            layoutInflater = this.layoutInflater,
 | 
				
			||||||
            title = title,
 | 
					            title = title,
 | 
				
			||||||
            desc = desc,
 | 
					            desc = desc,
 | 
				
			||||||
            confirmButtonTitle = "초기화",
 | 
					            confirmButtonTitle = "30캔으로 초기화",
 | 
				
			||||||
            confirmButtonClick = {
 | 
					            confirmButtonClick = {
 | 
				
			||||||
                val loadingDialog = LoadingDialog(this, layoutInflater)
 | 
					                val loadingDialog = LoadingDialog(this, layoutInflater)
 | 
				
			||||||
                loadingDialog.show(
 | 
					                loadingDialog.show(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,10 +7,10 @@ import android.view.View
 | 
				
			|||||||
import android.view.ViewGroup
 | 
					import android.view.ViewGroup
 | 
				
			||||||
import android.widget.ImageView
 | 
					import android.widget.ImageView
 | 
				
			||||||
import android.widget.LinearLayout
 | 
					import android.widget.LinearLayout
 | 
				
			||||||
 | 
					import android.widget.RelativeLayout
 | 
				
			||||||
import androidx.fragment.app.DialogFragment
 | 
					import androidx.fragment.app.DialogFragment
 | 
				
			||||||
import com.google.android.material.switchmaterial.SwitchMaterial
 | 
					import com.google.android.material.switchmaterial.SwitchMaterial
 | 
				
			||||||
import kr.co.vividnext.sodalive.R
 | 
					import kr.co.vividnext.sodalive.R
 | 
				
			||||||
import kr.co.vividnext.sodalive.base.SodaDialog
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * 채팅방 우측 상단 더보기 버튼 클릭 시 표시되는 전체화면 다이얼로그.
 | 
					 * 채팅방 우측 상단 더보기 버튼 클릭 시 표시되는 전체화면 다이얼로그.
 | 
				
			||||||
@@ -65,21 +65,12 @@ class ChatRoomMoreDialogFragment : DialogFragment() {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // 대화 초기화: Activity에 위임
 | 
					        // 대화 초기화: Activity에 위임
 | 
				
			||||||
        view.findViewById<LinearLayout>(R.id.row_reset)?.setOnClickListener {
 | 
					        view.findViewById<RelativeLayout>(R.id.row_reset)?.setOnClickListener {
 | 
				
			||||||
            (activity as? ChatRoomActivity)?.onResetChatRequested()
 | 
					            (activity as? ChatRoomActivity)?.onResetChatRequested()
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // 신고하기 (임시 안내)
 | 
					        view.findViewById<LinearLayout>(R.id.ll_btn_can)?.setOnClickListener {
 | 
				
			||||||
        view.findViewById<LinearLayout>(R.id.row_report)?.setOnClickListener {
 | 
					            (activity as? ChatRoomActivity)?.onResetChatRequested()
 | 
				
			||||||
            SodaDialog(
 | 
					 | 
				
			||||||
                requireActivity(),
 | 
					 | 
				
			||||||
                layoutInflater,
 | 
					 | 
				
			||||||
                title = "신고하기",
 | 
					 | 
				
			||||||
                desc = "신고하기 기능은 준비 중입니다.",
 | 
					 | 
				
			||||||
                confirmButtonTitle = "확인",
 | 
					 | 
				
			||||||
                confirmButtonClick = {},
 | 
					 | 
				
			||||||
                cancelButtonTitle = ""
 | 
					 | 
				
			||||||
            ).show(resources.displayMetrics.widthPixels)
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -76,7 +76,8 @@
 | 
				
			|||||||
                <com.google.android.material.switchmaterial.SwitchMaterial
 | 
					                <com.google.android.material.switchmaterial.SwitchMaterial
 | 
				
			||||||
                    android:id="@+id/sw_background"
 | 
					                    android:id="@+id/sw_background"
 | 
				
			||||||
                    android:layout_width="wrap_content"
 | 
					                    android:layout_width="wrap_content"
 | 
				
			||||||
                    android:layout_height="wrap_content" />
 | 
					                    android:layout_height="wrap_content"
 | 
				
			||||||
 | 
					                    app:trackTint="@color/color_777777" />
 | 
				
			||||||
            </LinearLayout>
 | 
					            </LinearLayout>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <View
 | 
					            <View
 | 
				
			||||||
@@ -108,55 +109,83 @@
 | 
				
			|||||||
                android:background="#26FFFFFF" />
 | 
					                android:background="#26FFFFFF" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <!-- 대화 초기화 -->
 | 
					            <!-- 대화 초기화 -->
 | 
				
			||||||
            <LinearLayout
 | 
					            <RelativeLayout
 | 
				
			||||||
                android:id="@+id/row_reset"
 | 
					                android:id="@+id/row_reset"
 | 
				
			||||||
                android:layout_width="match_parent"
 | 
					                android:layout_width="match_parent"
 | 
				
			||||||
                android:layout_height="wrap_content"
 | 
					                android:layout_height="wrap_content"
 | 
				
			||||||
                android:orientation="vertical"
 | 
					                android:orientation="horizontal"
 | 
				
			||||||
                android:paddingHorizontal="24dp"
 | 
					                android:paddingHorizontal="24dp"
 | 
				
			||||||
                android:paddingVertical="12dp">
 | 
					                android:paddingVertical="12dp">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                <TextView
 | 
					                <LinearLayout
 | 
				
			||||||
 | 
					                    android:id="@+id/ll_desc"
 | 
				
			||||||
                    android:layout_width="wrap_content"
 | 
					                    android:layout_width="wrap_content"
 | 
				
			||||||
                    android:layout_height="wrap_content"
 | 
					                    android:layout_height="wrap_content"
 | 
				
			||||||
                    android:fontFamily="@font/pretendard_bold"
 | 
					                    android:layout_alignParentStart="true"
 | 
				
			||||||
                    android:text="대화 초기화"
 | 
					                    android:layout_centerVertical="true"
 | 
				
			||||||
                    android:textColor="#B0BEC5"
 | 
					                    android:layout_marginEnd="10dp"
 | 
				
			||||||
                    android:textSize="18sp" />
 | 
					                    android:layout_toStartOf="@+id/ll_btn_can"
 | 
				
			||||||
 | 
					                    android:orientation="vertical">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                <TextView
 | 
					                    <TextView
 | 
				
			||||||
 | 
					                        android:layout_width="wrap_content"
 | 
				
			||||||
 | 
					                        android:layout_height="wrap_content"
 | 
				
			||||||
 | 
					                        android:fontFamily="@font/pretendard_bold"
 | 
				
			||||||
 | 
					                        android:text="대화 초기화"
 | 
				
			||||||
 | 
					                        android:textColor="#B0BEC5"
 | 
				
			||||||
 | 
					                        android:textSize="18sp" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                    <LinearLayout
 | 
				
			||||||
 | 
					                        android:layout_width="wrap_content"
 | 
				
			||||||
 | 
					                        android:layout_height="wrap_content"
 | 
				
			||||||
 | 
					                        android:layout_marginTop="6dp"
 | 
				
			||||||
 | 
					                        android:orientation="horizontal">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                        <TextView
 | 
				
			||||||
 | 
					                            android:layout_width="wrap_content"
 | 
				
			||||||
 | 
					                            android:layout_height="wrap_content"
 | 
				
			||||||
 | 
					                            android:fontFamily="@font/pretendard_regular"
 | 
				
			||||||
 | 
					                            android:text="⚠️ "
 | 
				
			||||||
 | 
					                            android:textColor="#B3FFFFFF"
 | 
				
			||||||
 | 
					                            android:textSize="16sp" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                        <TextView
 | 
				
			||||||
 | 
					                            android:layout_width="wrap_content"
 | 
				
			||||||
 | 
					                            android:layout_height="wrap_content"
 | 
				
			||||||
 | 
					                            android:fontFamily="@font/pretendard_regular"
 | 
				
			||||||
 | 
					                            android:text="지금까지의 대화가 모두 초기화 되고, 이용자가 새로운 캐릭터가 되어 새롭게 대화를 시작합니다."
 | 
				
			||||||
 | 
					                            android:textColor="#B3FFFFFF"
 | 
				
			||||||
 | 
					                            android:textSize="14sp" />
 | 
				
			||||||
 | 
					                    </LinearLayout>
 | 
				
			||||||
 | 
					                </LinearLayout>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                <LinearLayout
 | 
				
			||||||
 | 
					                    android:id="@+id/ll_btn_can"
 | 
				
			||||||
                    android:layout_width="wrap_content"
 | 
					                    android:layout_width="wrap_content"
 | 
				
			||||||
                    android:layout_height="wrap_content"
 | 
					                    android:layout_height="wrap_content"
 | 
				
			||||||
                    android:layout_marginTop="6dp"
 | 
					                    android:layout_alignParentEnd="true"
 | 
				
			||||||
                    android:fontFamily="@font/pretendard_regular"
 | 
					                    android:layout_centerVertical="true"
 | 
				
			||||||
                    android:text="지금까지의 대화가 모두 초기화 되고 새롭게 대화를 시작합니다."
 | 
					                    android:background="@drawable/bg_buy_button"
 | 
				
			||||||
                    android:textColor="#B3FFFFFF"
 | 
					                    android:gravity="center_vertical"
 | 
				
			||||||
                    android:textSize="16sp" />
 | 
					                    android:paddingHorizontal="10dp"
 | 
				
			||||||
            </LinearLayout>
 | 
					                    android:paddingVertical="3dp">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            <View
 | 
					                    <ImageView
 | 
				
			||||||
                android:layout_width="match_parent"
 | 
					                        android:layout_width="16dp"
 | 
				
			||||||
                android:layout_height="1dp"
 | 
					                        android:layout_height="16dp"
 | 
				
			||||||
                android:background="#26FFFFFF" />
 | 
					                        android:layout_marginEnd="4dp"
 | 
				
			||||||
 | 
					                        android:contentDescription="@null"
 | 
				
			||||||
            <!-- 신고하기 -->
 | 
					                        android:src="@drawable/ic_can" />
 | 
				
			||||||
            <LinearLayout
 | 
					 | 
				
			||||||
                android:id="@+id/row_report"
 | 
					 | 
				
			||||||
                android:layout_width="match_parent"
 | 
					 | 
				
			||||||
                android:layout_height="56dp"
 | 
					 | 
				
			||||||
                android:gravity="center_vertical"
 | 
					 | 
				
			||||||
                android:orientation="horizontal"
 | 
					 | 
				
			||||||
                android:paddingHorizontal="24dp">
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                <TextView
 | 
					 | 
				
			||||||
                    android:layout_width="wrap_content"
 | 
					 | 
				
			||||||
                    android:layout_height="wrap_content"
 | 
					 | 
				
			||||||
                    android:fontFamily="@font/pretendard_bold"
 | 
					 | 
				
			||||||
                    android:text="신고하기"
 | 
					 | 
				
			||||||
                    android:textColor="#B0BEC5"
 | 
					 | 
				
			||||||
                    android:textSize="18sp" />
 | 
					 | 
				
			||||||
            </LinearLayout>
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                    <TextView
 | 
				
			||||||
 | 
					                        android:layout_width="wrap_content"
 | 
				
			||||||
 | 
					                        android:layout_height="wrap_content"
 | 
				
			||||||
 | 
					                        android:fontFamily="@font/pretendard_bold"
 | 
				
			||||||
 | 
					                        android:text="30"
 | 
				
			||||||
 | 
					                        android:textColor="#263238"
 | 
				
			||||||
 | 
					                        android:textSize="16sp" />
 | 
				
			||||||
 | 
					                </LinearLayout>
 | 
				
			||||||
 | 
					            </RelativeLayout>
 | 
				
			||||||
        </LinearLayout>
 | 
					        </LinearLayout>
 | 
				
			||||||
    </androidx.core.widget.NestedScrollView>
 | 
					    </androidx.core.widget.NestedScrollView>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user