커뮤니티 작성 문자열 리소스화

This commit is contained in:
2025-12-03 20:23:29 +09:00
parent 270d697ce6
commit e67251c9ba
6 changed files with 122 additions and 37 deletions

View File

@@ -89,7 +89,7 @@ class CreatorCommunityWriteActivity : BaseActivity<ActivityCreatorCommunityWrite
}
)
binding.toolbar.tvBack.text = "게시글 등록"
binding.toolbar.tvBack.setText(R.string.screen_creator_community_write_title)
binding.toolbar.tvBack.setOnClickListener { finish() }
binding.tvRecordAudio.setOnClickListener {
@@ -137,14 +137,21 @@ class CreatorCommunityWriteActivity : BaseActivity<ActivityCreatorCommunityWrite
.check()
}
@SuppressLint("SetTextI18n")
private fun bindData() {
binding.tvNumberOfCharacters.text = getString(
R.string.screen_creator_community_write_character_count_format,
binding.etContent.text?.length ?: 0
)
compositeDisposable.add(
binding.etContent.textChanges().skip(1)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.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()
}
)

View File

@@ -37,7 +37,7 @@
android:layout_marginHorizontal="13.3dp"
android:layout_marginTop="13.3dp"
android:fontFamily="@font/gmarket_sans_bold"
android:text="이미지"
android:text="@string/screen_creator_community_write_image_label"
android:textColor="@color/color_eeeeee"
android:textSize="16.7sp" />
@@ -92,7 +92,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
android:fontFamily="@font/gmarket_sans_medium"
android:text=""
android:text="@string/screen_creator_community_write_notice_mark"
android:textColor="@color/color_777777"
android:textSize="13.3sp" />
@@ -101,7 +101,7 @@
android:layout_height="wrap_content"
android:layout_marginTop="24dp"
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:textSize="13.3sp" />
</LinearLayout>
@@ -120,7 +120,7 @@
android:layout_height="wrap_content"
android:layout_marginHorizontal="13.3dp"
android:fontFamily="@font/gmarket_sans_bold"
android:text="오디오 녹음"
android:text="@string/screen_creator_community_write_record_label"
android:textColor="@color/color_eeeeee"
android:textSize="16.7sp" />
@@ -134,7 +134,7 @@
android:fontFamily="@font/gmarket_sans_medium"
android:gravity="center"
android:paddingVertical="8dp"
android:text="녹음"
android:text="@string/screen_creator_community_write_record_action"
android:textColor="@color/color_80d8ff"
android:textSize="16.7sp" />
@@ -147,19 +147,19 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_medium"
android:text=""
android:textColor="@color/color_777777"
android:textSize="13.3sp" />
android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_medium"
android:text="@string/screen_creator_community_write_notice_mark"
android:textColor="@color/color_777777"
android:textSize="13.3sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_medium"
android:text="오디오 녹음은 최대 3분입니다"
android:textColor="@color/color_777777"
android:textSize="13.3sp" />
android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_medium"
android:text="@string/screen_creator_community_write_record_desc"
android:textColor="@color/color_777777"
android:textSize="13.3sp" />
</LinearLayout>
</LinearLayout>
@@ -180,7 +180,7 @@
android:layout_centerVertical="true"
android:fontFamily="@font/gmarket_sans_bold"
android:lineSpacingExtra="5sp"
android:text="내용"
android:text="@string/screen_creator_community_write_content_label"
android:textColor="@color/color_eeeeee"
android:textSize="16.7sp" />
@@ -194,7 +194,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
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:textSize="13.3sp" />
@@ -202,7 +202,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_medium"
android:text=" / 최대 500자"
android:text="@string/screen_creator_community_write_character_limit"
android:textColor="@color/color_777777"
android:textSize="13.3sp" />
@@ -217,7 +217,7 @@
android:background="@drawable/bg_round_corner_6_7_222222"
android:fontFamily="@font/gmarket_sans_medium"
android:gravity="top"
android:hint="내용을 입력하세요"
android:hint="@string/screen_creator_community_write_content_hint"
android:importantForAutofill="no"
android:inputType="textMultiLine"
android:padding="20dp"
@@ -274,7 +274,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_bold"
android:text="댓글 가능"
android:text="@string/screen_creator_community_write_comment_enabled"
android:textColor="@color/color_80d8ff"
android:textSize="14.7sp" />
</LinearLayout>
@@ -303,7 +303,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_bold"
android:text="댓글 불가"
android:text="@string/screen_creator_community_write_comment_disabled"
android:textColor="@color/color_80d8ff"
android:textSize="14.7sp" />
</LinearLayout>
@@ -323,7 +323,7 @@
android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_bold"
android:lineSpacingExtra="5sp"
android:text="연령 제한"
android:text="@string/screen_creator_community_write_age_title"
android:textColor="@color/color_eeeeee"
android:textSize="16.7sp" />
@@ -356,7 +356,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_bold"
android:text="전체 연령"
android:text="@string/screen_creator_community_write_age_all"
android:textColor="@color/color_80d8ff"
android:textSize="14.7sp" />
</LinearLayout>
@@ -385,7 +385,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
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:textSize="14.7sp" />
</LinearLayout>
@@ -405,7 +405,7 @@
android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_bold"
android:lineSpacingExtra="5sp"
android:text="가격 설정"
android:text="@string/screen_creator_community_write_price_title"
android:textColor="@color/color_eeeeee"
android:textSize="16.7sp" />
@@ -439,7 +439,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_bold"
android:text="무료"
android:text="@string/screen_creator_community_write_price_free"
android:textColor="@color/color_3bb9f1"
android:textSize="14.7sp" />
</LinearLayout>
@@ -468,7 +468,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_bold"
android:text="유료"
android:text="@string/screen_creator_community_write_price_paid"
android:textColor="@color/color_3bb9f1"
android:textSize="14.7sp" />
</LinearLayout>
@@ -509,7 +509,7 @@
android:layout_centerVertical="true"
android:layout_marginEnd="13.3dp"
android:fontFamily="@font/gmarket_sans_medium"
android:text=""
android:text="@string/screen_creator_community_write_can_unit"
android:textColor="@color/color_3bb9f1"
android:textSize="13.3sp" />
</RelativeLayout>
@@ -532,7 +532,7 @@
android:background="@drawable/bg_round_corner_6_7_13181b_3bb9f1"
android:fontFamily="@font/gmarket_sans_bold"
android:gravity="center"
android:text="닫기"
android:text="@string/screen_creator_community_write_close"
android:textColor="@color/color_3bb9f1"
android:textSize="18.3sp" />
@@ -545,7 +545,7 @@
android:background="@drawable/bg_round_corner_6_7_3bb9f1"
android:fontFamily="@font/gmarket_sans_bold"
android:gravity="center"
android:text="등록"
android:text="@string/screen_creator_community_write_submit"
android:textColor="@color/white"
android:textSize="18.3sp" />
</LinearLayout>

View File

@@ -15,7 +15,7 @@
android:fontFamily="@font/gmarket_sans_bold"
android:paddingHorizontal="26.7dp"
android:paddingTop="26.7dp"
android:text="음성녹음"
android:text="@string/screen_creator_community_record_title"
android:textColor="@color/white"
android:textSize="18.3sp"
app:layout_constraintStart_toStartOf="parent"
@@ -101,7 +101,7 @@
android:layout_marginStart="60dp"
android:layout_toEndOf="@+id/iv_record_play"
android:fontFamily="@font/gmarket_sans_medium"
android:text="삭제"
android:text="@string/screen_creator_community_record_delete"
android:textColor="@color/color_bbbbbb"
android:textSize="15.3sp" />
@@ -125,7 +125,7 @@
android:background="@drawable/bg_round_corner_10_13181b_3bb9f1"
android:fontFamily="@font/gmarket_sans_bold"
android:gravity="center"
android:text="다시 녹음"
android:text="@string/screen_creator_community_record_retry"
android:textColor="@color/color_3bb9f1"
android:textSize="18.3sp" />
@@ -138,7 +138,7 @@
android:background="@drawable/bg_round_corner_10_3bb9f1"
android:fontFamily="@font/gmarket_sans_bold"
android:gravity="center"
android:text="녹음 완료"
android:text="@string/screen_creator_community_record_complete"
android:textColor="@color/white"
android:textSize="18.3sp" />
</LinearLayout>

View File

@@ -788,6 +788,32 @@
<string name="screen_creator_community_delete_title">Delete post</string>
<string name="screen_creator_community_delete_desc">Delete this post?</string>
<string name="screen_creator_community_purchase_with_can">View this post for %1$d cans</string>
<string name="screen_creator_community_write_title">Create post</string>
<string name="screen_creator_community_write_image_label">Image</string>
<string name="screen_creator_community_write_image_optional_desc">If you don\'t have an image, you can post without one.</string>
<string name="screen_creator_community_write_notice_mark">※\u0020</string>
<string name="screen_creator_community_write_record_label">Record audio</string>
<string name="screen_creator_community_write_record_action">Record</string>
<string name="screen_creator_community_write_record_desc">You can record up to 3 minutes.</string>
<string name="screen_creator_community_write_content_label">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_limit"> / Max 500 chars</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_age_title">Age restriction</string>
<string name="screen_creator_community_write_age_all">All ages</string>
<string name="screen_creator_community_write_age_19_plus">19+</string>
<string name="screen_creator_community_write_price_title">Price</string>
<string name="screen_creator_community_write_price_free">Free</string>
<string name="screen_creator_community_write_price_paid">Paid</string>
<string name="screen_creator_community_write_can_unit">cans</string>
<string name="screen_creator_community_write_close">Close</string>
<string name="screen_creator_community_write_submit">Post</string>
<string name="screen_creator_community_record_title">Voice recording</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_complete">Finish recording</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_on_air">On Air</string>

View File

@@ -788,6 +788,32 @@
<string name="screen_creator_community_delete_title">投稿削除</string>
<string name="screen_creator_community_delete_desc">削除しますか?</string>
<string name="screen_creator_community_purchase_with_can">%1$dキャンで投稿を見る</string>
<string name="screen_creator_community_write_title">投稿登録</string>
<string name="screen_creator_community_write_image_label">画像</string>
<string name="screen_creator_community_write_image_optional_desc">登録する画像がなければ、画像なしで投稿しても構いません。</string>
<string name="screen_creator_community_write_notice_mark">※\u0020</string>
<string name="screen_creator_community_write_record_label">音声録音</string>
<string name="screen_creator_community_write_record_action">録音</string>
<string name="screen_creator_community_write_record_desc">音声録音は最大3分です。</string>
<string name="screen_creator_community_write_content_label">内容</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_limit"> / 最大500文字</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_age_title">年齢制限</string>
<string name="screen_creator_community_write_age_all">全年齢</string>
<string name="screen_creator_community_write_age_19_plus">19歳以上</string>
<string name="screen_creator_community_write_price_title">価格設定</string>
<string name="screen_creator_community_write_price_free">無料</string>
<string name="screen_creator_community_write_price_paid">有料</string>
<string name="screen_creator_community_write_can_unit">キャン</string>
<string name="screen_creator_community_write_close">閉じる</string>
<string name="screen_creator_community_write_submit">登録</string>
<string name="screen_creator_community_record_title">音声録音</string>
<string name="screen_creator_community_record_delete">削除</string>
<string name="screen_creator_community_record_retry">再録音</string>
<string name="screen_creator_community_record_complete">録音完了</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_on_air">On Air</string>

View File

@@ -787,6 +787,32 @@
<string name="screen_creator_community_delete_title">게시물 삭제</string>
<string name="screen_creator_community_delete_desc">삭제하시겠습니까?</string>
<string name="screen_creator_community_purchase_with_can">%1$d캔으로 게시글 보기</string>
<string name="screen_creator_community_write_title">게시글 등록</string>
<string name="screen_creator_community_write_image_label">이미지</string>
<string name="screen_creator_community_write_image_optional_desc">등록할 이미지가 없으면 이미지 없이\n게시글만 등록 하셔도 됩니다.</string>
<string name="screen_creator_community_write_notice_mark">※\u0020</string>
<string name="screen_creator_community_write_record_label">오디오 녹음</string>
<string name="screen_creator_community_write_record_action">녹음</string>
<string name="screen_creator_community_write_record_desc">오디오 녹음은 최대 3분입니다</string>
<string name="screen_creator_community_write_content_label">내용</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_limit"> / 최대 500자</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_age_title">연령 제한</string>
<string name="screen_creator_community_write_age_all">전체 연령</string>
<string name="screen_creator_community_write_age_19_plus">19세 이상</string>
<string name="screen_creator_community_write_price_title">가격 설정</string>
<string name="screen_creator_community_write_price_free">무료</string>
<string name="screen_creator_community_write_price_paid">유료</string>
<string name="screen_creator_community_write_can_unit"></string>
<string name="screen_creator_community_write_close">닫기</string>
<string name="screen_creator_community_write_submit">등록</string>
<string name="screen_creator_community_record_title">음성녹음</string>
<string name="screen_creator_community_record_delete">삭제</string>
<string name="screen_creator_community_record_retry">다시 녹음</string>
<string name="screen_creator_community_record_complete">녹음 완료</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_on_air">On Air</string>