마이페이지 탭에 보이스 크리에이터 지원하기 배너 추가

This commit is contained in:
2025-12-09 18:33:01 +09:00
parent 6cb8616c00
commit c9a1417d60
3 changed files with 19 additions and 2 deletions

View File

@@ -3,11 +3,11 @@ package kr.co.vividnext.sodalive.mypage
import android.annotation.SuppressLint
import android.content.Intent
import android.graphics.Rect
import android.net.Uri
import android.os.Bundle
import android.view.View
import android.webkit.URLUtil
import android.widget.Toast
import androidx.core.net.toUri
import androidx.media3.common.util.UnstableApi
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
@@ -166,10 +166,17 @@ class MyPageFragment : BaseFragment<FragmentMyBinding>(FragmentMyBinding::inflat
}
private fun setupView() {
binding.ivApplyCreator.setOnClickListener {
val url = "https://bit.ly/4h7pVks"
if (URLUtil.isValidUrl(url)) {
startActivity(Intent(Intent.ACTION_VIEW, url.toUri()))
}
}
binding.ivIntroduceVoiceon.setOnClickListener {
val url = "https://blog.naver.com/sodalive_official"
if (URLUtil.isValidUrl(url)) {
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(url)))
startActivity(Intent(Intent.ACTION_VIEW, url.toUri()))
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

@@ -358,6 +358,16 @@
</LinearLayout>
</LinearLayout>
<ImageView
android:id="@+id/iv_apply_creator"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginHorizontal="24dp"
android:layout_marginBottom="32dp"
android:contentDescription="@null"
android:src="@drawable/img_apply_creator" />
<ImageView
android:id="@+id/iv_introduce_voiceon"
android:layout_width="match_parent"