팬톡 전체보기 문자열 리소스화
This commit is contained in:
@@ -11,6 +11,7 @@ import android.view.inputmethod.InputMethodManager
|
|||||||
import android.widget.Toast
|
import android.widget.Toast
|
||||||
import androidx.recyclerview.widget.LinearLayoutManager
|
import androidx.recyclerview.widget.LinearLayoutManager
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
|
import kr.co.vividnext.sodalive.R
|
||||||
import kr.co.vividnext.sodalive.base.BaseActivity
|
import kr.co.vividnext.sodalive.base.BaseActivity
|
||||||
import kr.co.vividnext.sodalive.base.SodaDialog
|
import kr.co.vividnext.sodalive.base.SodaDialog
|
||||||
import kr.co.vividnext.sodalive.common.Constants
|
import kr.co.vividnext.sodalive.common.Constants
|
||||||
@@ -45,15 +46,18 @@ class UserProfileFantalkAllViewActivity : BaseActivity<ActivityUserProfileFantal
|
|||||||
|
|
||||||
viewModel.getCheersList(creatorId = userId)
|
viewModel.getCheersList(creatorId = userId)
|
||||||
} else {
|
} else {
|
||||||
Toast.makeText(applicationContext, "잘못된 요청입니다.", Toast.LENGTH_LONG).show()
|
Toast.makeText(
|
||||||
|
applicationContext,
|
||||||
|
getString(R.string.error_invalid_request),
|
||||||
|
Toast.LENGTH_LONG
|
||||||
|
).show()
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressLint("SetTextI18n")
|
|
||||||
override fun setupView() {
|
override fun setupView() {
|
||||||
loadingDialog = LoadingDialog(this, layoutInflater)
|
loadingDialog = LoadingDialog(this, layoutInflater)
|
||||||
binding.toolbar.tvBack.text = "팬 Talk 전체보기"
|
binding.toolbar.tvBack.setText(R.string.screen_user_profile_fantalk_all_title)
|
||||||
binding.toolbar.tvBack.setOnClickListener { finish() }
|
binding.toolbar.tvBack.setOnClickListener { finish() }
|
||||||
|
|
||||||
setupCheersView()
|
setupCheersView()
|
||||||
@@ -108,9 +112,9 @@ class UserProfileFantalkAllViewActivity : BaseActivity<ActivityUserProfileFantal
|
|||||||
SodaDialog(
|
SodaDialog(
|
||||||
activity = this@UserProfileFantalkAllViewActivity,
|
activity = this@UserProfileFantalkAllViewActivity,
|
||||||
layoutInflater = layoutInflater,
|
layoutInflater = layoutInflater,
|
||||||
title = "응원글 삭제",
|
title = getString(R.string.screen_user_profile_cheer_delete_title),
|
||||||
desc = "삭제하시겠습니까?",
|
desc = getString(R.string.screen_user_profile_cheer_delete_desc),
|
||||||
confirmButtonTitle = "삭제",
|
confirmButtonTitle = getString(R.string.confirm_delete_title),
|
||||||
confirmButtonClick = {
|
confirmButtonClick = {
|
||||||
cheersAdapter.items.clear()
|
cheersAdapter.items.clear()
|
||||||
viewModel.modifyCheers(
|
viewModel.modifyCheers(
|
||||||
@@ -119,7 +123,7 @@ class UserProfileFantalkAllViewActivity : BaseActivity<ActivityUserProfileFantal
|
|||||||
isActive = false
|
isActive = false
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
cancelButtonTitle = "취소",
|
cancelButtonTitle = getString(R.string.cancel),
|
||||||
cancelButtonClick = {}
|
cancelButtonClick = {}
|
||||||
).show(screenWidth)
|
).show(screenWidth)
|
||||||
},
|
},
|
||||||
@@ -198,7 +202,7 @@ class UserProfileFantalkAllViewActivity : BaseActivity<ActivityUserProfileFantal
|
|||||||
if (it.isBlank()) {
|
if (it.isBlank()) {
|
||||||
Toast.makeText(
|
Toast.makeText(
|
||||||
applicationContext,
|
applicationContext,
|
||||||
"신고 이유를 선택해 주세요.",
|
getString(R.string.screen_user_profile_fantalk_report_reason_required),
|
||||||
Toast.LENGTH_LONG
|
Toast.LENGTH_LONG
|
||||||
).show()
|
).show()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:fontFamily="@font/gmarket_sans_medium"
|
android:fontFamily="@font/gmarket_sans_medium"
|
||||||
android:text="응원"
|
android:text="@string/screen_user_profile_cheer_label"
|
||||||
android:textColor="@color/color_eeeeee"
|
android:textColor="@color/color_eeeeee"
|
||||||
android:textSize="14.7sp" />
|
android:textSize="14.7sp" />
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="50dp"
|
android:layout_height="50dp"
|
||||||
android:background="@drawable/bg_round_corner_10_232323_3bb9f1"
|
android:background="@drawable/bg_round_corner_10_232323_3bb9f1"
|
||||||
android:hint="응원댓글을 남겨보세요!"
|
android:hint="@string/screen_user_profile_cheer_hint"
|
||||||
android:importantForAutofill="no"
|
android:importantForAutofill="no"
|
||||||
android:inputType="text"
|
android:inputType="text"
|
||||||
android:paddingVertical="17dp"
|
android:paddingVertical="17dp"
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
android:fontFamily="@font/gmarket_sans_light"
|
android:fontFamily="@font/gmarket_sans_light"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:text="응원이 없습니다.\n\n처음으로 응원을 해보세요!"
|
android:text="@string/screen_user_profile_cheer_empty"
|
||||||
android:textColor="@color/color_bbbbbb"
|
android:textColor="@color/color_bbbbbb"
|
||||||
android:textSize="13.3sp" />
|
android:textSize="13.3sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@@ -749,12 +749,15 @@
|
|||||||
<string name="screen_user_profile_audio_ratio_empty">No owned works yet!</string>
|
<string name="screen_user_profile_audio_ratio_empty">No owned works yet!</string>
|
||||||
<string name="screen_user_profile_audio_ratio_detail">%1$s / %2$s items</string>
|
<string name="screen_user_profile_audio_ratio_detail">%1$s / %2$s items</string>
|
||||||
<string name="screen_user_profile_fan_talk_title">Fan Talk</string>
|
<string name="screen_user_profile_fan_talk_title">Fan Talk</string>
|
||||||
|
<string name="screen_user_profile_fantalk_all_title">View all Fan Talk</string>
|
||||||
<string name="screen_user_profile_cheer_label">Cheer</string>
|
<string name="screen_user_profile_cheer_label">Cheer</string>
|
||||||
<string name="screen_user_profile_cheer_hint">Leave a cheer comment!</string>
|
<string name="screen_user_profile_cheer_hint">Leave a cheer comment!</string>
|
||||||
<string name="screen_user_profile_cheer_reply_hint">Leave a reply to this cheer!</string>
|
<string name="screen_user_profile_cheer_reply_hint">Leave a reply to this cheer!</string>
|
||||||
<string name="screen_user_profile_cheer_empty">No cheers yet.\n\nBe the first to cheer!</string>
|
<string name="screen_user_profile_cheer_empty">No cheers yet.\n\nBe the first to cheer!</string>
|
||||||
<string name="screen_user_profile_cheer_edit">Edit</string>
|
<string name="screen_user_profile_cheer_edit">Edit</string>
|
||||||
<string name="screen_user_profile_cheer_delete_title">Delete cheer</string>
|
<string name="screen_user_profile_cheer_delete_title">Delete cheer</string>
|
||||||
|
<string name="screen_user_profile_cheer_delete_desc">Delete this cheer?</string>
|
||||||
|
<string name="screen_user_profile_fantalk_report_reason_required">Please select a report reason.</string>
|
||||||
<string name="screen_user_profile_reply_edit">Edit reply</string>
|
<string name="screen_user_profile_reply_edit">Edit reply</string>
|
||||||
<string name="screen_user_profile_reply_submit">Submit</string>
|
<string name="screen_user_profile_reply_submit">Submit</string>
|
||||||
<string name="screen_user_profile_reply_write">Write a reply</string>
|
<string name="screen_user_profile_reply_write">Write a reply</string>
|
||||||
|
|||||||
@@ -749,12 +749,15 @@
|
|||||||
<string name="screen_user_profile_audio_ratio_empty">保有している作品がありません。</string>
|
<string name="screen_user_profile_audio_ratio_empty">保有している作品がありません。</string>
|
||||||
<string name="screen_user_profile_audio_ratio_detail">%1$s / %2$s件</string>
|
<string name="screen_user_profile_audio_ratio_detail">%1$s / %2$s件</string>
|
||||||
<string name="screen_user_profile_fan_talk_title">ファントーク</string>
|
<string name="screen_user_profile_fan_talk_title">ファントーク</string>
|
||||||
|
<string name="screen_user_profile_fantalk_all_title">ファントークをすべて見る</string>
|
||||||
<string name="screen_user_profile_cheer_label">応援</string>
|
<string name="screen_user_profile_cheer_label">応援</string>
|
||||||
<string name="screen_user_profile_cheer_hint">応援コメントを残してください!</string>
|
<string name="screen_user_profile_cheer_hint">応援コメントを残してください!</string>
|
||||||
<string name="screen_user_profile_cheer_reply_hint">応援コメントに返信を残してください!</string>
|
<string name="screen_user_profile_cheer_reply_hint">応援コメントに返信を残してください!</string>
|
||||||
<string name="screen_user_profile_cheer_empty">応援がありません。\n\n最初の応援をしてください!</string>
|
<string name="screen_user_profile_cheer_empty">応援がありません。\n\n最初の応援をしてください!</string>
|
||||||
<string name="screen_user_profile_cheer_edit">編集</string>
|
<string name="screen_user_profile_cheer_edit">編集</string>
|
||||||
<string name="screen_user_profile_cheer_delete_title">応援の削除</string>
|
<string name="screen_user_profile_cheer_delete_title">応援の削除</string>
|
||||||
|
<string name="screen_user_profile_cheer_delete_desc">応援を削除しますか?</string>
|
||||||
|
<string name="screen_user_profile_fantalk_report_reason_required">通報理由を選択してください。</string>
|
||||||
<string name="screen_user_profile_reply_edit">返信を編集</string>
|
<string name="screen_user_profile_reply_edit">返信を編集</string>
|
||||||
<string name="screen_user_profile_reply_submit">登録</string>
|
<string name="screen_user_profile_reply_submit">登録</string>
|
||||||
<string name="screen_user_profile_reply_write">返信を書く</string>
|
<string name="screen_user_profile_reply_write">返信を書く</string>
|
||||||
|
|||||||
@@ -748,12 +748,15 @@
|
|||||||
<string name="screen_user_profile_audio_ratio_empty">소장 중인 작품이 없어요!</string>
|
<string name="screen_user_profile_audio_ratio_empty">소장 중인 작품이 없어요!</string>
|
||||||
<string name="screen_user_profile_audio_ratio_detail">%1$s / %2$s개</string>
|
<string name="screen_user_profile_audio_ratio_detail">%1$s / %2$s개</string>
|
||||||
<string name="screen_user_profile_fan_talk_title">팬 Talk</string>
|
<string name="screen_user_profile_fan_talk_title">팬 Talk</string>
|
||||||
|
<string name="screen_user_profile_fantalk_all_title">팬 Talk 전체보기</string>
|
||||||
<string name="screen_user_profile_cheer_label">응원</string>
|
<string name="screen_user_profile_cheer_label">응원</string>
|
||||||
<string name="screen_user_profile_cheer_hint">응원댓글을 남겨보세요!</string>
|
<string name="screen_user_profile_cheer_hint">응원댓글을 남겨보세요!</string>
|
||||||
<string name="screen_user_profile_cheer_reply_hint">응원댓글에 답글을 남겨보세요!</string>
|
<string name="screen_user_profile_cheer_reply_hint">응원댓글에 답글을 남겨보세요!</string>
|
||||||
<string name="screen_user_profile_cheer_empty">응원이 없습니다.\n\n처음으로 응원을 해보세요!</string>
|
<string name="screen_user_profile_cheer_empty">응원이 없습니다.\n\n처음으로 응원을 해보세요!</string>
|
||||||
<string name="screen_user_profile_cheer_edit">수정</string>
|
<string name="screen_user_profile_cheer_edit">수정</string>
|
||||||
<string name="screen_user_profile_cheer_delete_title">응원글 삭제</string>
|
<string name="screen_user_profile_cheer_delete_title">응원글 삭제</string>
|
||||||
|
<string name="screen_user_profile_cheer_delete_desc">응원을 삭제하시겠습니까?</string>
|
||||||
|
<string name="screen_user_profile_fantalk_report_reason_required">신고 이유를 선택해 주세요.</string>
|
||||||
<string name="screen_user_profile_reply_edit">답글 수정</string>
|
<string name="screen_user_profile_reply_edit">답글 수정</string>
|
||||||
<string name="screen_user_profile_reply_submit">등록</string>
|
<string name="screen_user_profile_reply_submit">등록</string>
|
||||||
<string name="screen_user_profile_reply_write">답글 쓰기</string>
|
<string name="screen_user_profile_reply_write">답글 쓰기</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user