마이페이지 탭에 보이스 크리에이터 지원하기 배너 추가
This commit is contained in:
@@ -3,11 +3,11 @@ package kr.co.vividnext.sodalive.mypage
|
|||||||
import android.annotation.SuppressLint
|
import android.annotation.SuppressLint
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.graphics.Rect
|
import android.graphics.Rect
|
||||||
import android.net.Uri
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.webkit.URLUtil
|
import android.webkit.URLUtil
|
||||||
import android.widget.Toast
|
import android.widget.Toast
|
||||||
|
import androidx.core.net.toUri
|
||||||
import androidx.media3.common.util.UnstableApi
|
import androidx.media3.common.util.UnstableApi
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
@@ -166,10 +166,17 @@ class MyPageFragment : BaseFragment<FragmentMyBinding>(FragmentMyBinding::inflat
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun setupView() {
|
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 {
|
binding.ivIntroduceVoiceon.setOnClickListener {
|
||||||
val url = "https://blog.naver.com/sodalive_official"
|
val url = "https://blog.naver.com/sodalive_official"
|
||||||
if (URLUtil.isValidUrl(url)) {
|
if (URLUtil.isValidUrl(url)) {
|
||||||
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(url)))
|
startActivity(Intent(Intent.ACTION_VIEW, url.toUri()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
BIN
app/src/main/res/drawable-mdpi/img_apply_creator.png
Normal file
BIN
app/src/main/res/drawable-mdpi/img_apply_creator.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
@@ -358,6 +358,16 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</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
|
<ImageView
|
||||||
android:id="@+id/iv_introduce_voiceon"
|
android:id="@+id/iv_introduce_voiceon"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|||||||
Reference in New Issue
Block a user