feat(gift): 선물 신청 화면을 추가한다

This commit is contained in:
2026-10-01 15:58:29 +09:00
parent b4774f4919
commit 6857511670
2 changed files with 740 additions and 0 deletions
@@ -0,0 +1,268 @@
package kr.co.vividnext.sodalive.v2.gift
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.view.View
import android.widget.AdapterView
import androidx.activity.result.contract.ActivityResultContracts
import androidx.core.content.ContextCompat
import androidx.core.text.buildSpannedString
import androidx.core.text.color
import androidx.core.view.WindowCompat
import androidx.core.view.isVisible
import androidx.core.widget.addTextChangedListener
import kr.co.vividnext.sodalive.R
import kr.co.vividnext.sodalive.base.BaseActivity
import kr.co.vividnext.sodalive.common.LoadingDialog
import kr.co.vividnext.sodalive.common.ToastMessage
import kr.co.vividnext.sodalive.databinding.ActivityGiftSendRequestBinding
import kr.co.vividnext.sodalive.databinding.ItemGiftSendSizeBinding
import org.koin.androidx.viewmodel.ext.android.viewModel
class GiftSendRequestActivity : BaseActivity<ActivityGiftSendRequestBinding>(ActivityGiftSendRequestBinding::inflate) {
private val viewModel: GiftSendRequestViewModel by viewModel()
private val postcodeSearchLauncher = registerForActivityResult(
ActivityResultContracts.StartActivityForResult()
) { result ->
if (result.resultCode != Activity.RESULT_OK) return@registerForActivityResult
binding.tvPostcode.text = result.data
?.getStringExtra(KakaoPostcodeSearchActivity.EXTRA_ZONE_CODE)
.orEmpty()
binding.tvAddress.text = result.data
?.getStringExtra(KakaoPostcodeSearchActivity.EXTRA_ADDRESS)
.orEmpty()
binding.etDetailAddress.requestFocus()
updateCtaState()
}
private lateinit var entry: GiftSendEntry
private var categories: List<GiftCategoryUiModel> = emptyList()
private var sizes: List<GiftSizeUiModel> = emptyList()
private var isOptionsLoading = false
private var isSubmitLoading = false
private var loadingDialog: LoadingDialog? = null
override fun setupView() {
val entry = GiftSendRequestPresenter.toValidEntry(
intent.getLongExtra(EXTRA_CREATOR_MEMBER_ID, 0L),
intent.getStringExtra(EXTRA_CREATOR_NICKNAME).orEmpty()
)
if (entry == null) {
showToast(getString(R.string.gift_send_invalid_access))
finish()
return
}
this.entry = entry
WindowCompat.getInsetsController(window, binding.root).apply {
isAppearanceLightStatusBars = false
isAppearanceLightNavigationBars = false
}
binding.tvCreatorNickname.text = entry.creatorNickname
binding.btnBack.setOnClickListener { finish() }
sizes = GiftSendRequestPresenter.selectDefaultSize(emptyList())
bindSizeOptions()
setupCategory()
setupForm()
observeViewModel()
binding.btnPostcodeSearch.setOnClickListener {
postcodeSearchLauncher.launch(KakaoPostcodeSearchActivity.newIntent(this))
}
binding.btnSend.setOnClickListener { viewModel.submitGift(entry, currentFormState()) }
viewModel.loadFormOptions()
updateCtaState()
}
private fun observeViewModel() {
viewModel.optionsStateLiveData.observe(this) { state ->
isOptionsLoading = state is GiftSendOptionsState.Loading
updateLoadingDialog()
if (state is GiftSendOptionsState.Content) {
bindOptions(state.options)
}
}
viewModel.toastLiveData.observe(this) { toastMessage ->
toastMessage?.let(::showToast)
}
viewModel.isSubmitLoading.observe(this) { loading ->
isSubmitLoading = loading
updateLoadingDialog()
updateCtaState()
}
}
private fun bindOptions(options: GiftFormOptionsUiModel) {
sizes = options.sizes
categories = options.categories
bindSizeOptions()
setupCategory()
updateDamageWaiverVisibility()
updateCtaState()
}
private fun bindSizeOptions() {
binding.layoutSizeOptions.removeAllViews()
sizes.forEach { size ->
val item = ItemGiftSendSizeBinding.inflate(layoutInflater, binding.layoutSizeOptions, false)
item.root.isSelected = GiftSendRequestPresenter.hasBorder(size)
item.radioSize.text = size.title
item.radioSize.isChecked = size.selected
item.radioSize.isSelected = size.selected
item.tvSizeDescription.text = size.description
item.tvSizePoints.text = size.pointText
val selectSize = View.OnClickListener {
sizes = sizes.map { it.copy(selected = it.id == size.id) }
bindSizeOptions()
updateCtaState()
}
item.root.setOnClickListener(selectSize)
item.radioSize.setOnClickListener(selectSize)
binding.layoutSizeOptions.addView(item.root)
}
}
private fun setupCategory() {
binding.spinnerCategory.adapter = GiftCategoryAdapter(
context = this,
items = listOf(getString(R.string.gift_send_category_hint)) + categories.map { it.name }
).apply {
setDropDownViewResource(R.layout.item_gift_send_category)
}
binding.spinnerCategory.onItemSelectedListener = object : AdapterView.OnItemSelectedListener {
override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) {
updateDamageWaiverVisibility()
updateCtaState()
}
override fun onNothingSelected(parent: AdapterView<*>?) {
updateCtaState()
}
}
}
private fun updateDamageWaiverVisibility() = with(binding.cbDamageLoss) {
val requiresDamageWaiver = GiftSendRequestPresenter.categoryRequiresDamageWaiverAt(
binding.spinnerCategory.selectedItemPosition,
categories
)
isVisible = requiresDamageWaiver
if (!requiresDamageWaiver) {
isChecked = false
}
}
private fun setupForm() = with(binding) {
etSenderName.filters = arrayOf(GiftSendInputFilters.senderName())
etPhoneNumber.filters = arrayOf(GiftSendInputFilters.phoneNumber())
listOf(etSenderName, etPhoneNumber, etDetailAddress).forEach { input ->
input.addTextChangedListener { updateCtaState() }
}
listOf(cbTerms, cbPrivacy, cbDamageLoss).forEach { agreement ->
agreement.text = buildSpannedString {
append(agreement.text)
color(ContextCompat.getColor(this@GiftSendRequestActivity, R.color.soda_400)) {
append(getString(R.string.gift_send_required))
}
}
agreement.setOnCheckedChangeListener { button, checked ->
button.isSelected = checked
updateCtaState()
}
}
}
private fun currentFormState() = with(binding) {
GiftSendFormState(
senderName = etSenderName.text.toString(),
phoneNumber = etPhoneNumber.text.toString(),
zoneCode = tvPostcode.text.toString(),
address = tvAddress.text.toString(),
detailAddress = etDetailAddress.text.toString(),
selectedSizeId = sizes.firstOrNull { it.selected }?.id,
selectedSizeSalePriceCan = sizes.firstOrNull { it.selected }?.salePriceCan,
selectedCategoryId = GiftSendRequestPresenter.categoryIdAt(spinnerCategory.selectedItemPosition, categories),
selectedCategoryRequiresDamageWaiver = GiftSendRequestPresenter.categoryRequiresDamageWaiverAt(
spinnerCategory.selectedItemPosition,
categories
),
termsAgreed = cbTerms.isChecked,
privacyAgreed = cbPrivacy.isChecked,
damageLossAgreed = cbDamageLoss.isChecked
)
}
private fun updateCtaState() = with(binding) {
val formState = currentFormState()
bindCtaState(GiftSendRequestPresenter.ctaState(formState))
}
private fun bindCtaState(state: GiftSendCtaState) = with(binding) {
GiftSendInputErrorBinder.bind(
context = this@GiftSendRequestActivity,
input = etSenderName,
helper = tvSenderNameSupport,
hasError = state.hasSenderNameError,
errorText = getString(R.string.gift_send_name_error),
normalText = getString(R.string.gift_send_name_description)
)
GiftSendInputErrorBinder.bind(
context = this@GiftSendRequestActivity,
input = etPhoneNumber,
helper = tvPhoneNumberSupport,
hasError = state.hasPhoneNumberError,
errorText = getString(R.string.gift_send_phone_error),
normalText = getString(R.string.gift_send_phone_description)
)
btnSend.isEnabled = state.isEnabled && viewModel.isSubmitLoading.value != true
btnSend.text = state.priceCan?.let { getString(R.string.gift_send_cta_price, it) }
?: getString(R.string.gift_send_title)
btnSend.setTextColor(ContextCompat.getColor(btnSend.context, if (state.isEnabled) R.color.white else R.color.gray_500))
btnSend.setBackgroundResource(
if (state.isEnabled) {
R.drawable.bg_creator_channel_fantalk_write_send_enabled
} else {
R.drawable.bg_creator_channel_fantalk_write_send_disabled
}
)
}
private fun updateLoadingDialog() {
if (isOptionsLoading || isSubmitLoading) {
showLoadingDialog()
} else {
loadingDialog?.dismiss()
}
}
private fun showLoadingDialog() {
val dialog = loadingDialog ?: LoadingDialog(this, layoutInflater).also { loadingDialog = it }
dialog.show(screenWidth)
}
override fun onDestroy() {
loadingDialog?.dismiss()
super.onDestroy()
}
private fun showToast(toastMessage: ToastMessage) {
val message = toastMessage.message ?: toastMessage.resId?.let(::getString) ?: return
if (viewModel.consumeSubmitSuccessEvent()) {
showToast(message)
finish()
return
}
showToast(message)
}
companion object {
const val EXTRA_CREATOR_MEMBER_ID = "extra_creator_member_id"
const val EXTRA_CREATOR_NICKNAME = "extra_creator_nickname"
fun newIntent(context: Context, creatorMemberId: Long, creatorNickname: String): Intent =
Intent(context, GiftSendRequestActivity::class.java).apply {
putExtra(EXTRA_CREATOR_MEMBER_ID, creatorMemberId)
putExtra(EXTRA_CREATOR_NICKNAME, creatorNickname)
}
}
}
@@ -0,0 +1,472 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black"
android:focusableInTouchMode="true"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingHorizontal="@dimen/spacing_14"
android:paddingVertical="@dimen/spacing_4">
<ImageButton
android:id="@+id/btn_back"
android:layout_width="@dimen/spacing_48"
android:layout_height="@dimen/spacing_48"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/a11y_back"
android:src="@drawable/ic_new_bar_back" />
<TextView
style="@style/Typography.Heading4"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:fontFamily="@font/medium"
android:text="@string/gift_send_title"
android:textColor="@color/white" />
</LinearLayout>
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingTop="@dimen/spacing_14"
android:paddingBottom="@dimen/spacing_48">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/spacing_14"
android:background="@drawable/bg_creator_channel_fantalk_reply"
android:orientation="vertical"
android:padding="@dimen/spacing_14">
<TextView
style="@style/Typography.Body4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableStart="@drawable/ic_notice_exclamation_mark"
android:drawablePadding="@dimen/spacing_6"
android:gravity="center_vertical"
android:text="@string/gift_send_guide_title"
android:textColor="@color/white" />
<TextView
style="@style/Typography.Caption3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_8"
android:text="@string/gift_send_guide_description"
android:textColor="@color/gray_400" />
</LinearLayout>
<TextView
style="@style/Typography.Body1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_24"
android:paddingHorizontal="@dimen/spacing_14"
android:paddingVertical="@dimen/spacing_8"
android:text="@string/gift_send_recipient"
android:textColor="@color/white" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/spacing_14"
android:layout_marginTop="@dimen/spacing_12"
android:background="@drawable/bg_creator_channel_fantalk_reply"
android:gravity="center_vertical"
android:orientation="horizontal"
android:paddingHorizontal="@dimen/spacing_14"
android:paddingVertical="@dimen/spacing_12">
<ImageView
android:layout_width="42dp"
android:layout_height="42dp"
android:contentDescription="@string/a11y_feed_profile_image"
android:src="@drawable/bg_placeholder" />
<TextView
android:id="@+id/tv_creator_nickname"
style="@style/Typography.Body4"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_8"
android:layout_weight="1"
android:textColor="@color/white"
tools:text="달빛수집가" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/spacing_8"
android:layout_marginVertical="@dimen/spacing_24"
android:background="@color/color_111111" />
<TextView
style="@style/Typography.Body1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="@dimen/spacing_14"
android:paddingTop="@dimen/spacing_8"
android:text="@string/gift_send_size"
android:textColor="@color/white" />
<TextView
style="@style/Typography.Caption2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_4"
android:paddingHorizontal="@dimen/spacing_14"
android:paddingBottom="@dimen/spacing_8"
android:text="@string/gift_send_size_description"
android:textColor="@color/gray_300" />
<LinearLayout
android:id="@+id/layout_size_options"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/spacing_14"
android:layout_marginTop="@dimen/spacing_12"
android:orientation="vertical" />
<TextView
style="@style/Typography.Body1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_24"
android:labelFor="@id/spinner_category"
android:paddingHorizontal="@dimen/spacing_14"
android:paddingTop="@dimen/spacing_8"
android:text="@string/gift_send_category"
android:textColor="@color/white" />
<TextView
style="@style/Typography.Caption2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_4"
android:paddingHorizontal="@dimen/spacing_14"
android:paddingBottom="@dimen/spacing_8"
android:text="@string/gift_send_category_description"
android:textColor="@color/gray_300" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/spacing_14"
android:layout_marginTop="@dimen/spacing_12"
android:background="@drawable/bg_creator_channel_fantalk_reply">
<Spinner
android:id="@+id/spinner_category"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:backgroundTint="@color/gray_400"
android:minHeight="@dimen/spacing_48"
android:popupBackground="@color/gray_900"
android:spinnerMode="dropdown" />
</FrameLayout>
<android.widget.CheckBox
android:id="@+id/cb_damage_loss"
style="@style/Typography.Body2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/spacing_14"
android:layout_marginTop="@dimen/spacing_12"
android:background="?attr/selectableItemBackground"
android:button="@drawable/ic_radio_button_select"
android:buttonTint="@null"
android:minHeight="@dimen/spacing_48"
android:paddingStart="@dimen/spacing_6"
android:paddingEnd="0dp"
android:text="@string/gift_send_damage_loss_agreement"
android:textColor="@color/white" />
<View
android:layout_width="match_parent"
android:layout_height="@dimen/spacing_8"
android:layout_marginVertical="@dimen/spacing_24"
android:background="@color/color_111111" />
<TextView
style="@style/Typography.Body1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="@dimen/spacing_14"
android:paddingTop="@dimen/spacing_8"
android:text="@string/gift_send_sender"
android:textColor="@color/white" />
<TextView
style="@style/Typography.Caption2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_4"
android:paddingHorizontal="@dimen/spacing_14"
android:paddingBottom="@dimen/spacing_8"
android:text="@string/gift_send_sender_description"
android:textColor="@color/gray_300" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_12"
android:orientation="vertical"
android:paddingHorizontal="@dimen/spacing_14">
<TextView
style="@style/Typography.Body5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:labelFor="@id/et_sender_name"
android:text="@string/gift_send_name"
android:textColor="@color/gray_300" />
<EditText
android:id="@+id/et_sender_name"
style="@style/Typography.Body3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_4"
android:background="@drawable/bg_creator_channel_fantalk_reply"
android:backgroundTint="@null"
android:hint="@string/gift_send_name_hint"
android:imeOptions="actionNext"
android:importantForAutofill="no"
android:inputType="textPersonName"
android:minHeight="@dimen/spacing_48"
android:padding="@dimen/spacing_14"
android:singleLine="true"
android:textColor="@color/white"
android:textColorHint="@color/gray_500" />
<TextView
android:id="@+id/tv_sender_name_support"
style="@style/Typography.Body5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_4"
android:text="@string/gift_send_name_description"
android:textColor="@color/gray_400" />
<TextView
style="@style/Typography.Body5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_20"
android:labelFor="@id/et_phone_number"
android:text="@string/gift_send_phone"
android:textColor="@color/gray_300" />
<EditText
android:id="@+id/et_phone_number"
style="@style/Typography.Body3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_4"
android:background="@drawable/bg_creator_channel_fantalk_reply"
android:backgroundTint="@null"
android:hint="@string/gift_send_phone_hint"
android:imeOptions="actionNext"
android:importantForAutofill="no"
android:inputType="phone"
android:minHeight="@dimen/spacing_48"
android:padding="@dimen/spacing_14"
android:singleLine="true"
android:textColor="@color/white"
android:textColorHint="@color/gray_500" />
<TextView
android:id="@+id/tv_phone_number_support"
style="@style/Typography.Body5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_4"
android:text="@string/gift_send_phone_description"
android:textColor="@color/gray_400" />
<TextView
style="@style/Typography.Body5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_20"
android:text="@string/gift_send_address"
android:textColor="@color/gray_300" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_4"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:id="@+id/tv_postcode"
style="@style/Typography.Body3"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/bg_creator_channel_fantalk_reply"
android:focusable="false"
android:hint="@string/gift_send_postcode_hint"
android:minHeight="@dimen/spacing_48"
android:padding="@dimen/spacing_14"
android:textColor="@color/white"
android:textColorHint="@color/gray_500" />
<android.widget.Button
android:id="@+id/btn_postcode_search"
style="@style/Typography.Body2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_8"
android:background="@drawable/bg_creator_channel_outline_button"
android:backgroundTint="@null"
android:minHeight="@dimen/spacing_48"
android:minWidth="0dp"
android:padding="@dimen/spacing_12"
android:text="@string/gift_send_postcode_search"
android:textAllCaps="false"
android:textColor="@color/white" />
</LinearLayout>
<TextView
android:id="@+id/tv_address"
style="@style/Typography.Body3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_8"
android:background="@drawable/bg_creator_channel_fantalk_reply"
android:focusable="false"
android:hint="@string/gift_send_address_hint"
android:minHeight="@dimen/spacing_48"
android:padding="@dimen/spacing_14"
android:textColor="@color/white"
android:textColorHint="@color/gray_500" />
<EditText
android:id="@+id/et_detail_address"
style="@style/Typography.Body3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_8"
android:background="@drawable/bg_creator_channel_fantalk_reply"
android:backgroundTint="@null"
android:hint="@string/gift_send_detail_address_hint"
android:imeOptions="actionDone"
android:importantForAutofill="no"
android:inputType="textPostalAddress"
android:minHeight="@dimen/spacing_48"
android:padding="@dimen/spacing_14"
android:singleLine="true"
android:textColor="@color/white"
android:textColorHint="@color/gray_500" />
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="@dimen/spacing_8"
android:layout_marginVertical="@dimen/spacing_24"
android:background="@color/color_111111" />
<TextView
style="@style/Typography.Body1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="@dimen/spacing_14"
android:paddingVertical="@dimen/spacing_8"
android:text="@string/gift_send_agreements"
android:textColor="@color/white" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/spacing_14"
android:layout_marginTop="@dimen/spacing_12"
android:background="@drawable/bg_creator_channel_fantalk_reply"
android:orientation="vertical"
android:padding="@dimen/spacing_14">
<TextView
style="@style/Typography.Body4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/gift_send_rules_title"
android:textColor="@color/white" />
<TextView
style="@style/Typography.Caption3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_6"
android:text="@string/gift_send_rules"
android:textColor="@color/gray_300" />
</LinearLayout>
<android.widget.CheckBox
android:id="@+id/cb_terms"
style="@style/Typography.Body2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/spacing_14"
android:layout_marginTop="@dimen/spacing_20"
android:background="?attr/selectableItemBackground"
android:button="@drawable/ic_radio_button_select"
android:buttonTint="@null"
android:minHeight="@dimen/spacing_48"
android:paddingStart="@dimen/spacing_6"
android:paddingEnd="0dp"
android:text="@string/gift_send_terms_agreement"
android:textColor="@color/white" />
<android.widget.CheckBox
android:id="@+id/cb_privacy"
style="@style/Typography.Body2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/spacing_14"
android:layout_marginTop="@dimen/spacing_8"
android:background="?attr/selectableItemBackground"
android:button="@drawable/ic_radio_button_select"
android:buttonTint="@null"
android:minHeight="@dimen/spacing_48"
android:paddingStart="@dimen/spacing_6"
android:paddingEnd="0dp"
android:text="@string/gift_send_privacy_agreement"
android:textColor="@color/white" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
<android.widget.Button
android:id="@+id/btn_send"
style="@style/Typography.Heading4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="@dimen/spacing_14"
android:layout_marginVertical="@dimen/spacing_8"
android:background="@drawable/bg_creator_channel_fantalk_write_send_disabled"
android:backgroundTint="@null"
android:enabled="false"
android:fontFamily="@font/medium"
android:minHeight="@dimen/spacing_48"
android:padding="@dimen/spacing_14"
android:text="@string/gift_send_title"
android:textAllCaps="false"
android:textColor="@color/gray_500" />
</LinearLayout>