Skip to content

Commit

Permalink
[FEAT] #14-string 추출
Browse files Browse the repository at this point in the history
  • Loading branch information
sohyun127 committed May 25, 2023
1 parent a32e7c9 commit 45569ae
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 24 deletions.
18 changes: 9 additions & 9 deletions app/src/main/res/layout/activity_home.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
app:layout_constraintTop_toTopOf="parent"
app:menu="@menu/menu_home_toolbar"
app:navigationIcon="@drawable/ic_x"
app:title="당근알바"
app:title="@string/home_title"
app:titleTextAppearance="@style/TextAppearance.Carrot.title1_bold" />


Expand Down Expand Up @@ -70,7 +70,7 @@
android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="15dp"
android:text="내 주변 사장님이\n교북동 빠릿님을 찾고 있어요!"
android:text="@string/home_title"
android:textAppearance="@style/TextAppearance.Carrot.sub_title_bold_16"
android:textColor="@color/color_sub_gray1"
app:layout_constraintTop_toTopOf="parent" />
Expand Down Expand Up @@ -132,7 +132,7 @@
android:drawablePadding="6dp"
android:paddingHorizontal="12dp"
android:paddingVertical="4dp"
android:text="교복동 외 234"
android:text="@string/home_filter_place"
android:textAppearance="@style/TextAppearance.Carrot.body_medium_14"
android:textColor="@color/color_sub_gray1"
app:layout_constraintStart_toStartOf="parent"
Expand All @@ -148,7 +148,7 @@
android:drawablePadding="6dp"
android:paddingHorizontal="12dp"
android:paddingVertical="4dp"
android:text="단기"
android:text="@string/home_filter_period"
android:textAppearance="@style/TextAppearance.Carrot.body_medium_14"
android:textColor="@color/color_sub_gray1"
app:layout_constraintStart_toEndOf="@id/tv_home_filter_place"
Expand All @@ -164,7 +164,7 @@
android:drawablePadding="6dp"
android:paddingHorizontal="12dp"
android:paddingVertical="4dp"
android:text="하는일"
android:text="@string/home_filter_work"
android:textAppearance="@style/TextAppearance.Carrot.body_medium_14"
android:textColor="@color/color_sub_gray1"
app:layout_constraintStart_toEndOf="@id/tv_home_filter_period"
Expand All @@ -180,7 +180,7 @@
android:drawablePadding="6dp"
android:paddingHorizontal="12dp"
android:paddingVertical="4dp"
android:text="요일"
android:text="@string/home_filter_day"
android:textAppearance="@style/TextAppearance.Carrot.body_medium_14"
android:textColor="@color/color_sub_gray1"
app:layout_constraintStart_toEndOf="@id/tv_home_filter_work"
Expand All @@ -196,7 +196,7 @@
android:background="@drawable/rectangle_gray7_radius_8"
android:paddingHorizontal="16dp"
android:paddingVertical="14dp"
android:text="원하는 알바를 알림으로 받아보세요"
android:text="@string/home_notification_1"
android:textAppearance="@style/TextAppearance.Carrot.body_medium_14"
android:textColor="@color/color_sub_gray2"
app:layout_constraintTop_toBottomOf="@id/tv_home_filter_place" />
Expand All @@ -209,7 +209,7 @@
android:layout_marginEnd="16dp"
android:drawableStart="@drawable/ic_bell_2"
android:drawablePadding="5dp"
android:text="알림설정"
android:text="@string/home_notification_2"
android:textAppearance="@style/TextAppearance.Carrot.sub_title_bold"
app:layout_constraintBottom_toBottomOf="@id/tv_home_notification_1"
app:layout_constraintEnd_toEndOf="@id/tv_home_notification_1"
Expand Down Expand Up @@ -255,7 +255,7 @@
android:layout_marginTop="18dp"
android:drawableStart="@drawable/ic_star"
android:drawablePadding="4dp"
android:text="오늘의 인기 알바"
android:text="@string/home_today_popularity"
android:textAppearance="@style/TextAppearance.Carrot.sub_title_bold_16"
android:textColor="@color/color_sub_gray1"
app:layout_constraintTop_toTopOf="parent" />
Expand Down
14 changes: 7 additions & 7 deletions app/src/main/res/layout/item_home_full_job.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
app:layout_constraintEnd_toStartOf="@id/iv_item_home_full_job_img"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/view_item_home_full_job_line"
tools:text="데이즈호텔 프론트" />
tools:text="@string/item_home_full_job_title" />

<TextView
android:id="@+id/tv_item_home_full_job_detail"
Expand All @@ -39,7 +39,7 @@
android:layout_marginTop="3dp"
android:drawableEnd="@drawable/ic_info"
android:drawablePadding="7dp"
android:text="데이즈호텔명동 · 충무로1가 · 광고"
android:text="@string/item_home_full_job_detail"
android:textAppearance="@style/TextAppearance.Carrot.body_medium_11"
android:textColor="@color/color_sub_gray3"
app:layout_constraintStart_toStartOf="parent"
Expand All @@ -51,7 +51,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="24dp"
android:text="후기1"
android:text="@string/item_home_full_job_numbers_of_reviews"
android:textAppearance="@style/TextAppearance.Carrot.sub_title_bold_12"
android:textColor="@color/color_main1"
app:layout_constraintStart_toStartOf="parent"
Expand All @@ -67,7 +67,7 @@
android:background="@drawable/rectangle_gray7_radius_4"
android:paddingHorizontal="8dp"
android:paddingVertical="3dp"
android:text="연락을 잘해줘요"
android:text="@string/item_home_full_job_review_tag_1"
android:textAppearance="@style/TextAppearance.Carrot.body_medium_11"
android:textColor="@color/color_sub_gray2"
app:layout_constraintStart_toEndOf="@id/tv_item_home_full_job_numbers_of_reviews"
Expand All @@ -82,7 +82,7 @@
android:backgroundTint="@color/color_sub_blue2"
android:paddingHorizontal="8dp"
android:paddingVertical="3dp"
android:text="걸어서 10분"
android:text="@string/item_home_full_job_review_tag_2"
android:textAppearance="@style/TextAppearance.Carrot.body_medium_11"
android:textColor="@color/color_sub_blue1"
app:layout_constraintStart_toEndOf="@id/tv_item_home_full_job_review_tag_1"
Expand All @@ -94,7 +94,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="5dp"
android:text="월~일 | 18:00~ 00:30 협의"
android:text="@string/item_home_full_job_period"
android:textAppearance="@style/TextAppearance.Carrot.body_medium_14"
android:textColor="@color/color_sub_gray4"
app:layout_constraintStart_toStartOf="parent"
Expand Down Expand Up @@ -130,7 +130,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/iv_item_home_full_job_img"
tools:text="시급 10,000원" />
tools:text="@string/item_home_full_job_salary" />


</androidx.constraintlayout.widget.ConstraintLayout>
6 changes: 3 additions & 3 deletions app/src/main/res/layout/item_home_recommended_job.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="리앙크리스피롤 수원AK점" />
tools:text="@string/item_home_recommended_job_title" />

<TextView
android:id="@+id/tv_item_home_recommended_job_detail"
Expand All @@ -52,7 +52,7 @@
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="29dp"
android:text="리앙크리스피롤 수원AK점"
android:text="@string/item_home_recommended_job_detail"
android:textAppearance="@style/TextAppearance.Carrot.body_medium_11"
android:textColor="@color/color_sub_gray3"
app:layout_constraintEnd_toEndOf="parent"
Expand All @@ -72,7 +72,7 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_item_home_recommended_job_detail"
app:layout_goneMarginEnd="16dp"
tools:text="월급 201만원" />
tools:text="@string/item_home_full_job_salary" />


</androidx.constraintlayout.widget.ConstraintLayout>
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/res/layout/item_home_today_popularity_job.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="1위 카페운영및관리.광고홍보.멀티되..." />
tools:text="@string/item_home_today_popularity_job_title" />


<TextView
Expand All @@ -38,7 +38,7 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_item_home_today_popularity_job_title"
tools:text="오랑제뜨21\t\t연남동" />
tools:text="@string/item_home_today_popularity_job_detail" />

<TextView
android:id="@+id/tv_item_home_today_popularity_job_interest"
Expand All @@ -49,7 +49,7 @@
android:textColor="@color/color_sub_gray3"
app:layout_constraintBottom_toTopOf="@id/tv_item_home_today_popularity_job_check"
app:layout_constraintStart_toStartOf="parent"
tools:text="관심 2" />
tools:text="@string/item_home_today_popularity_job_interest" />


<TextView
Expand All @@ -62,7 +62,7 @@
android:textColor="@color/color_sub_gray3"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
tools:text="조회 132"
tools:text="@string/item_home_today_popularity_job_check"

/>

Expand All @@ -79,7 +79,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/tv_item_home_today_popularity_job_check"
tools:text="10,000원" />
tools:text="@string/item_home_today_popularity_job_salary" />


</androidx.constraintlayout.widget.ConstraintLayout>
27 changes: 27 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,32 @@
<string name="sample2">sample2</string>
//home
<string name="sample3">sample3</string>
<string name="home_tool_bar_title">당근알바</string>
<string name="home_title">내 주변 사장님이\n교북동 빠릿님을 찾고 있어요!</string>
<string name="home_filter_place">교복동 외 234</string>
<string name="home_filter_period">단기</string>
<string name="home_filter_work">하는 일</string>
<string name="home_filter_day">요일</string>
<string name="home_notification_1">원하는 알바를 알림으로 받아보세요</string>
<string name="home_notification_2">알림설정</string>
<string name="home_today_popularity">오늘의 인기 알바</string>
<string name="item_home_full_job_title">데이즈호텔 프론트</string>
<string name="item_home_full_job_detail">데이즈호텔명동 · 충무로1가 · 광고</string>
<string name="item_home_full_job_numbers_of_reviews">후기1</string>
<string name="item_home_full_job_review_tag_1">연락을 잘해줘요</string>
<string name="item_home_full_job_review_tag_2">걸어서 10분</string>
<string name="item_home_full_job_period">월~일 | 18:00~ 00:30 협의</string>
<string name="item_home_full_job_salary">시급 10,000원</string>
<string name="item_home_recommended_job_title">리앙크리스피롤 수원AK점</string>
<string name="item_home_recommended_job_detail">리앙크리스피롤 수원AK점</string>
<string name="item_home_recommended_job_salary">월급 201만원</string>
<string name="item_home_today_popularity_job_title">1위 카페운영및관리.광고홍보.멀티되...</string>
<string name="item_home_today_popularity_job_detail">오랑제뜨21\t\t연남동</string>
<string name="item_home_today_popularity_job_interest">관심 2</string>
<string name="item_home_today_popularity_job_check">조회 132</string>
<string name="item_home_today_popularity_job_salary">10,000원</string>




</resources>

0 comments on commit 45569ae

Please sign in to comment.