커뮤니티 수정 문자열 리소스화
This commit is contained in:
@@ -42,14 +42,22 @@ class CreatorCommunityModifyActivity : BaseActivity<ActivityCreatorCommunityModi
|
|||||||
|
|
||||||
val postId = intent.getLongExtra(Constants.EXTRA_COMMUNITY_POST_ID, 0)
|
val postId = intent.getLongExtra(Constants.EXTRA_COMMUNITY_POST_ID, 0)
|
||||||
if (postId <= 0) {
|
if (postId <= 0) {
|
||||||
Toast.makeText(applicationContext, "잘못된 요청입니다.", Toast.LENGTH_LONG).show()
|
Toast.makeText(
|
||||||
|
applicationContext,
|
||||||
|
getString(R.string.screen_creator_community_all_error_invalid_request),
|
||||||
|
Toast.LENGTH_LONG
|
||||||
|
).show()
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
|
|
||||||
viewModel.postId = postId
|
viewModel.postId = postId
|
||||||
viewModel.getCommunityPostDetail(
|
viewModel.getCommunityPostDetail(
|
||||||
onFailure = {
|
onFailure = {
|
||||||
Toast.makeText(applicationContext, "잘못된 요청입니다.", Toast.LENGTH_LONG).show()
|
Toast.makeText(
|
||||||
|
applicationContext,
|
||||||
|
getString(R.string.screen_creator_community_all_error_invalid_request),
|
||||||
|
Toast.LENGTH_LONG
|
||||||
|
).show()
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@@ -93,7 +101,7 @@ class CreatorCommunityModifyActivity : BaseActivity<ActivityCreatorCommunityModi
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
binding.toolbar.tvBack.text = "게시글 등록"
|
binding.toolbar.tvBack.setText(R.string.screen_creator_community_modify_title)
|
||||||
binding.toolbar.tvBack.setOnClickListener { finish() }
|
binding.toolbar.tvBack.setOnClickListener { finish() }
|
||||||
|
|
||||||
binding.ivPhotoPicker.setOnClickListener { cropper.launch() }
|
binding.ivPhotoPicker.setOnClickListener { cropper.launch() }
|
||||||
@@ -136,14 +144,21 @@ class CreatorCommunityModifyActivity : BaseActivity<ActivityCreatorCommunityModi
|
|||||||
.check()
|
.check()
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressLint("SetTextI18n")
|
|
||||||
private fun bindData() {
|
private fun bindData() {
|
||||||
|
binding.tvNumberOfCharacters.text = getString(
|
||||||
|
R.string.screen_creator_community_write_character_count_format,
|
||||||
|
binding.etContent.text?.length ?: 0
|
||||||
|
)
|
||||||
|
|
||||||
compositeDisposable.add(
|
compositeDisposable.add(
|
||||||
binding.etContent.textChanges().skip(1)
|
binding.etContent.textChanges().skip(1)
|
||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.subscribe {
|
.subscribe {
|
||||||
binding.tvNumberOfCharacters.text = "${it.length}자"
|
binding.tvNumberOfCharacters.text = getString(
|
||||||
|
R.string.screen_creator_community_write_character_count_format,
|
||||||
|
it.length
|
||||||
|
)
|
||||||
viewModel.content = it.toString()
|
viewModel.content = it.toString()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
android:layout_marginHorizontal="13.3dp"
|
android:layout_marginHorizontal="13.3dp"
|
||||||
android:layout_marginTop="13.3dp"
|
android:layout_marginTop="13.3dp"
|
||||||
android:fontFamily="@font/gmarket_sans_bold"
|
android:fontFamily="@font/gmarket_sans_bold"
|
||||||
android:text="이미지"
|
android:text="@string/screen_creator_community_write_image_label"
|
||||||
android:textColor="@color/color_eeeeee"
|
android:textColor="@color/color_eeeeee"
|
||||||
android:textSize="16.7sp" />
|
android:textSize="16.7sp" />
|
||||||
|
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="24dp"
|
android:layout_marginTop="24dp"
|
||||||
android:fontFamily="@font/gmarket_sans_medium"
|
android:fontFamily="@font/gmarket_sans_medium"
|
||||||
android:text="※ "
|
android:text="@string/screen_creator_community_write_notice_mark"
|
||||||
android:textColor="@color/color_777777"
|
android:textColor="@color/color_777777"
|
||||||
android:textSize="13.3sp" />
|
android:textSize="13.3sp" />
|
||||||
|
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="24dp"
|
android:layout_marginTop="24dp"
|
||||||
android:fontFamily="@font/gmarket_sans_medium"
|
android:fontFamily="@font/gmarket_sans_medium"
|
||||||
android:text="등록할 이미지가 없으면 이미지 없이\n게시글만 등록 하셔도 됩니다."
|
android:text="@string/screen_creator_community_write_image_optional_desc"
|
||||||
android:textColor="@color/color_777777"
|
android:textColor="@color/color_777777"
|
||||||
android:textSize="13.3sp" />
|
android:textSize="13.3sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@@ -123,7 +123,7 @@
|
|||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:fontFamily="@font/gmarket_sans_bold"
|
android:fontFamily="@font/gmarket_sans_bold"
|
||||||
android:lineSpacingExtra="5sp"
|
android:lineSpacingExtra="5sp"
|
||||||
android:text="내용"
|
android:text="@string/screen_creator_community_write_content_label"
|
||||||
android:textColor="@color/color_eeeeee"
|
android:textColor="@color/color_eeeeee"
|
||||||
android:textSize="16.7sp" />
|
android:textSize="16.7sp" />
|
||||||
|
|
||||||
@@ -137,7 +137,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="0자"
|
android:text="@string/screen_creator_community_write_character_count_format"
|
||||||
android:textColor="@color/color_ff5c49"
|
android:textColor="@color/color_ff5c49"
|
||||||
android:textSize="13.3sp" />
|
android:textSize="13.3sp" />
|
||||||
|
|
||||||
@@ -145,7 +145,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=" / 최대 500자"
|
android:text="@string/screen_creator_community_write_character_limit"
|
||||||
android:textColor="@color/color_777777"
|
android:textColor="@color/color_777777"
|
||||||
android:textSize="13.3sp" />
|
android:textSize="13.3sp" />
|
||||||
|
|
||||||
@@ -160,7 +160,7 @@
|
|||||||
android:background="@drawable/bg_round_corner_6_7_222222"
|
android:background="@drawable/bg_round_corner_6_7_222222"
|
||||||
android:fontFamily="@font/gmarket_sans_medium"
|
android:fontFamily="@font/gmarket_sans_medium"
|
||||||
android:gravity="top"
|
android:gravity="top"
|
||||||
android:hint="내용을 입력하세요"
|
android:hint="@string/screen_creator_community_write_content_hint"
|
||||||
android:importantForAutofill="no"
|
android:importantForAutofill="no"
|
||||||
android:inputType="textMultiLine"
|
android:inputType="textMultiLine"
|
||||||
android:padding="20dp"
|
android:padding="20dp"
|
||||||
@@ -184,7 +184,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:fontFamily="@font/gmarket_sans_bold"
|
android:fontFamily="@font/gmarket_sans_bold"
|
||||||
android:lineSpacingExtra="5sp"
|
android:lineSpacingExtra="5sp"
|
||||||
android:text="댓글 가능 여부"
|
android:text="@string/screen_creator_community_write_comment_title"
|
||||||
android:textColor="@color/color_eeeeee"
|
android:textColor="@color/color_eeeeee"
|
||||||
android:textSize="16.7sp" />
|
android:textSize="16.7sp" />
|
||||||
|
|
||||||
@@ -217,7 +217,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_bold"
|
android:fontFamily="@font/gmarket_sans_bold"
|
||||||
android:text="댓글 가능"
|
android:text="@string/screen_creator_community_write_comment_enabled"
|
||||||
android:textColor="@color/color_80d8ff"
|
android:textColor="@color/color_80d8ff"
|
||||||
android:textSize="14.7sp" />
|
android:textSize="14.7sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@@ -246,7 +246,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_bold"
|
android:fontFamily="@font/gmarket_sans_bold"
|
||||||
android:text="댓글 불가"
|
android:text="@string/screen_creator_community_write_comment_disabled"
|
||||||
android:textColor="@color/color_80d8ff"
|
android:textColor="@color/color_80d8ff"
|
||||||
android:textSize="14.7sp" />
|
android:textSize="14.7sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@@ -266,7 +266,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:fontFamily="@font/gmarket_sans_bold"
|
android:fontFamily="@font/gmarket_sans_bold"
|
||||||
android:lineSpacingExtra="5sp"
|
android:lineSpacingExtra="5sp"
|
||||||
android:text="연령 제한"
|
android:text="@string/screen_creator_community_write_age_title"
|
||||||
android:textColor="@color/color_eeeeee"
|
android:textColor="@color/color_eeeeee"
|
||||||
android:textSize="16.7sp" />
|
android:textSize="16.7sp" />
|
||||||
|
|
||||||
@@ -299,7 +299,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_bold"
|
android:fontFamily="@font/gmarket_sans_bold"
|
||||||
android:text="전체 연령"
|
android:text="@string/screen_creator_community_write_age_all"
|
||||||
android:textColor="@color/color_80d8ff"
|
android:textColor="@color/color_80d8ff"
|
||||||
android:textSize="14.7sp" />
|
android:textSize="14.7sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@@ -328,7 +328,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_bold"
|
android:fontFamily="@font/gmarket_sans_bold"
|
||||||
android:text="19세 이상"
|
android:text="@string/screen_creator_community_write_age_19_plus"
|
||||||
android:textColor="@color/color_80d8ff"
|
android:textColor="@color/color_80d8ff"
|
||||||
android:textSize="14.7sp" />
|
android:textSize="14.7sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@@ -352,7 +352,7 @@
|
|||||||
android:background="@drawable/bg_round_corner_6_7_13181b_3bb9f1"
|
android:background="@drawable/bg_round_corner_6_7_13181b_3bb9f1"
|
||||||
android:fontFamily="@font/gmarket_sans_bold"
|
android:fontFamily="@font/gmarket_sans_bold"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="닫기"
|
android:text="@string/screen_creator_community_write_close"
|
||||||
android:textColor="@color/color_3bb9f1"
|
android:textColor="@color/color_3bb9f1"
|
||||||
android:textSize="18.3sp" />
|
android:textSize="18.3sp" />
|
||||||
|
|
||||||
@@ -365,7 +365,7 @@
|
|||||||
android:background="@drawable/bg_round_corner_6_7_3bb9f1"
|
android:background="@drawable/bg_round_corner_6_7_3bb9f1"
|
||||||
android:fontFamily="@font/gmarket_sans_bold"
|
android:fontFamily="@font/gmarket_sans_bold"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="수정"
|
android:text="@string/screen_creator_community_modify_submit"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="18.3sp" />
|
android:textSize="18.3sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|||||||
@@ -799,6 +799,7 @@
|
|||||||
<string name="screen_creator_community_write_content_hint">Enter content</string>
|
<string name="screen_creator_community_write_content_hint">Enter content</string>
|
||||||
<string name="screen_creator_community_write_character_count_format">%1$d chars</string>
|
<string name="screen_creator_community_write_character_count_format">%1$d chars</string>
|
||||||
<string name="screen_creator_community_write_character_limit"> / Max 500 chars</string>
|
<string name="screen_creator_community_write_character_limit"> / Max 500 chars</string>
|
||||||
|
<string name="screen_creator_community_write_comment_title">Comments</string>
|
||||||
<string name="screen_creator_community_write_comment_enabled">Comments on</string>
|
<string name="screen_creator_community_write_comment_enabled">Comments on</string>
|
||||||
<string name="screen_creator_community_write_comment_disabled">Comments off</string>
|
<string name="screen_creator_community_write_comment_disabled">Comments off</string>
|
||||||
<string name="screen_creator_community_write_age_title">Age restriction</string>
|
<string name="screen_creator_community_write_age_title">Age restriction</string>
|
||||||
@@ -814,6 +815,8 @@
|
|||||||
<string name="screen_creator_community_record_delete">Delete</string>
|
<string name="screen_creator_community_record_delete">Delete</string>
|
||||||
<string name="screen_creator_community_record_retry">Record again</string>
|
<string name="screen_creator_community_record_retry">Record again</string>
|
||||||
<string name="screen_creator_community_record_complete">Finish recording</string>
|
<string name="screen_creator_community_record_complete">Finish recording</string>
|
||||||
|
<string name="screen_creator_community_modify_title">Edit post</string>
|
||||||
|
<string name="screen_creator_community_modify_submit">Save</string>
|
||||||
<string name="screen_user_profile_reservation_title">Reserve with %1$s cans</string>
|
<string name="screen_user_profile_reservation_title">Reserve with %1$s cans</string>
|
||||||
<string name="screen_user_profile_reservation_desc">Pay to join the \"%1$s\" live.</string>
|
<string name="screen_user_profile_reservation_desc">Pay to join the \"%1$s\" live.</string>
|
||||||
<string name="screen_user_profile_on_air">On Air</string>
|
<string name="screen_user_profile_on_air">On Air</string>
|
||||||
|
|||||||
@@ -799,6 +799,7 @@
|
|||||||
<string name="screen_creator_community_write_content_hint">内容を入力してください</string>
|
<string name="screen_creator_community_write_content_hint">内容を入力してください</string>
|
||||||
<string name="screen_creator_community_write_character_count_format">%1$d文字</string>
|
<string name="screen_creator_community_write_character_count_format">%1$d文字</string>
|
||||||
<string name="screen_creator_community_write_character_limit"> / 最大500文字</string>
|
<string name="screen_creator_community_write_character_limit"> / 最大500文字</string>
|
||||||
|
<string name="screen_creator_community_write_comment_title">コメント可否</string>
|
||||||
<string name="screen_creator_community_write_comment_enabled">コメント可</string>
|
<string name="screen_creator_community_write_comment_enabled">コメント可</string>
|
||||||
<string name="screen_creator_community_write_comment_disabled">コメント不可</string>
|
<string name="screen_creator_community_write_comment_disabled">コメント不可</string>
|
||||||
<string name="screen_creator_community_write_age_title">年齢制限</string>
|
<string name="screen_creator_community_write_age_title">年齢制限</string>
|
||||||
@@ -814,6 +815,8 @@
|
|||||||
<string name="screen_creator_community_record_delete">削除</string>
|
<string name="screen_creator_community_record_delete">削除</string>
|
||||||
<string name="screen_creator_community_record_retry">再録音</string>
|
<string name="screen_creator_community_record_retry">再録音</string>
|
||||||
<string name="screen_creator_community_record_complete">録音完了</string>
|
<string name="screen_creator_community_record_complete">録音完了</string>
|
||||||
|
<string name="screen_creator_community_modify_title">投稿修正</string>
|
||||||
|
<string name="screen_creator_community_modify_submit">修正</string>
|
||||||
<string name="screen_user_profile_reservation_title">%1$sキャンで予約</string>
|
<string name="screen_user_profile_reservation_title">%1$sキャンで予約</string>
|
||||||
<string name="screen_user_profile_reservation_desc">「%1$s」ライブに参加するために決済します。</string>
|
<string name="screen_user_profile_reservation_desc">「%1$s」ライブに参加するために決済します。</string>
|
||||||
<string name="screen_user_profile_on_air">On Air</string>
|
<string name="screen_user_profile_on_air">On Air</string>
|
||||||
|
|||||||
@@ -798,6 +798,7 @@
|
|||||||
<string name="screen_creator_community_write_content_hint">내용을 입력하세요</string>
|
<string name="screen_creator_community_write_content_hint">내용을 입력하세요</string>
|
||||||
<string name="screen_creator_community_write_character_count_format">%1$d자</string>
|
<string name="screen_creator_community_write_character_count_format">%1$d자</string>
|
||||||
<string name="screen_creator_community_write_character_limit"> / 최대 500자</string>
|
<string name="screen_creator_community_write_character_limit"> / 최대 500자</string>
|
||||||
|
<string name="screen_creator_community_write_comment_title">댓글 가능 여부</string>
|
||||||
<string name="screen_creator_community_write_comment_enabled">댓글 가능</string>
|
<string name="screen_creator_community_write_comment_enabled">댓글 가능</string>
|
||||||
<string name="screen_creator_community_write_comment_disabled">댓글 불가</string>
|
<string name="screen_creator_community_write_comment_disabled">댓글 불가</string>
|
||||||
<string name="screen_creator_community_write_age_title">연령 제한</string>
|
<string name="screen_creator_community_write_age_title">연령 제한</string>
|
||||||
@@ -813,6 +814,8 @@
|
|||||||
<string name="screen_creator_community_record_delete">삭제</string>
|
<string name="screen_creator_community_record_delete">삭제</string>
|
||||||
<string name="screen_creator_community_record_retry">다시 녹음</string>
|
<string name="screen_creator_community_record_retry">다시 녹음</string>
|
||||||
<string name="screen_creator_community_record_complete">녹음 완료</string>
|
<string name="screen_creator_community_record_complete">녹음 완료</string>
|
||||||
|
<string name="screen_creator_community_modify_title">게시글 수정</string>
|
||||||
|
<string name="screen_creator_community_modify_submit">수정</string>
|
||||||
<string name="screen_user_profile_reservation_title">%1$s캔으로 예약</string>
|
<string name="screen_user_profile_reservation_title">%1$s캔으로 예약</string>
|
||||||
<string name="screen_user_profile_reservation_desc">\'%1$s\' 라이브에 참여하기 위해 결제합니다.</string>
|
<string name="screen_user_profile_reservation_desc">\'%1$s\' 라이브에 참여하기 위해 결제합니다.</string>
|
||||||
<string name="screen_user_profile_on_air">On Air</string>
|
<string name="screen_user_profile_on_air">On Air</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user