Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
๐Ÿ› ๏ธ ๊ฐ์ •๋ถ„์„ ํ™”๋ฉด, ์Šคํฌ๋กค ๋ทฐ ๋ฌธ์ œ ํ•ด๊ฒฐ (#100)
Browse files Browse the repository at this point in the history
* [refactoring] ๋ถ„์„๋œ ๊ฐ์ • ์‘๋‹ต ํ›„ ๋„์šฐ๊ธฐ

* [feat] ๊ณต์ง€ ํŽ˜์ด์ง€ view

* [style] string ์ •๋ฆฌ
  • Loading branch information
HamBeomJoon authored Aug 14, 2024
1 parent b5ba5de commit a1c4c5d
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>(R.layout.fragment_home) {
super.initListener()

binding.ibNotification.setOnClickListener {

val ft = requireActivity().supportFragmentManager.beginTransaction()
ft.replace(R.id.fl_main, NotifyFragment())
ft.addToBackStack("notify")
ft.commit()
}

binding.ibMypage.setOnClickListener {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.nabi.nabi.views.home

import com.nabi.nabi.R
import com.nabi.nabi.base.BaseFragment
import com.nabi.nabi.databinding.FragmentMypageBinding

class NotifyFragment: BaseFragment<FragmentMypageBinding>(R.layout.fragment_mypage) {
override fun initView() {
TODO("Not yet implemented")
}

}
4 changes: 2 additions & 2 deletions Nabi/presentation/src/main/res/layout/fragment_chat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="๋Œ€ํ™”ํ•˜๊ธฐ"
android:text="@string/text_chat_title"
style="@style/heading4"
android:textColor="@color/black"
android:layout_gravity="center"/>
Expand Down Expand Up @@ -88,7 +88,7 @@

tools:text="์•ˆ๋…•ํ•˜์„ธ์š”\n์•ˆ๋…•ํ•˜์„ธ์š”\n์•ˆ๋…•ํ•˜์„ธ์š”์•ˆ๋…•ํ•˜์„ธ์š”์•ˆ๋…•ํ•˜์„ธ์š”์•ˆ๋…•ํ•˜์„ธ์š”์•ˆ๋…•ํ•˜์„ธ์š”"
style="@style/chat_send_msg_text_regular_16px"
android:hint="๋‚ด์šฉ์„ ์ž…๋ ฅํ•˜์„ธ์š”"
android:hint="@string/hint_chat"
android:textColor="@color/black"
android:textColorHint="@color/gray2" />

Expand Down
20 changes: 10 additions & 10 deletions Nabi/presentation/src/main/res/layout/fragment_detail_diary.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

<ScrollView
android:layout_width="match_parent"
android:fillViewport="true"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:fillViewport="true">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
Expand Down Expand Up @@ -50,7 +50,7 @@

android:layout_gravity="end"
android:background="@color/transparent"
android:text="์ˆ˜์ •"
android:text="@string/text_modify"
android:textColor="@color/black" />

<androidx.appcompat.widget.AppCompatButton
Expand All @@ -62,7 +62,7 @@

android:layout_gravity="end"
android:background="@color/transparent"
android:text="์‚ญ์ œ"
android:text="@string/text_delete"
android:textColor="@color/red" />
</Toolbar>

Expand All @@ -72,21 +72,21 @@
android:layout_height="100dp"

android:contentDescription="@null"
android:src="@drawable/img_no_emotion"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tb_diary_detail"

app:layout_constraintTop_toBottomOf="@id/tb_diary_detail" />
tools:src="@drawable/img_no_emotion" />

<androidx.appcompat.widget.AppCompatButton
android:id="@+id/btn_emotion_reload"
android:layout_width="104dp"
android:layout_width="108dp"
android:layout_height="28dp"
android:layout_marginTop="4dp"
android:background="@color/primary"
android:text="์ผ๊ธฐ ๊ฐ์ • ๋ถ„์„ํ•˜๊ธฐ"
android:visibility="gone"
android:text="@string/text_emotion_reload"
android:textSize="12sp"
android:visibility="gone"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/iv_emotion" />
Expand All @@ -107,14 +107,14 @@

<TextView
android:id="@+id/tv_diary_content"
android:padding="12dp"
style="@style/body2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginHorizontal="40dp"
android:layout_marginVertical="12dp"
android:layout_marginBottom="36dp"
android:gravity="center|top"
android:padding="12dp"
android:textColor="@color/black"

app:layout_constraintEnd_toEndOf="parent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="์ง€๋ฃจํ•œ ๊ฐ์ •์˜ ์ผ๊ธฐ๋“ค"
tools:text="์ง€๋ฃจํ•œ ๊ฐ์ •์˜ ์ผ๊ธฐ๋“ค"
android:textColor="@color/black" />
</Toolbar>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
style="@style/search_keyword_regular_16px"
android:textColor="@color/black"
android:textColorHint="@color/gray2"
android:hint="๊ฒ€์ƒ‰์–ด๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”"
android:hint="@string/hint_search_diary"

android:importantForAutofill="no"
android:inputType="text"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="๊ฐ์ • ํ†ต๊ณ„"
android:text="@string/text_emotion_statistic_title"
android:textColor="@color/black" />
</Toolbar>

Expand Down Expand Up @@ -251,7 +251,7 @@

android:gravity="center"

android:text="๊ฐ์ • ๊ณ ์–‘์ด๋“ค์„ ์„ ํƒํ•ด ํ•ด๋‹น ๊ฐ์ •์˜ ์ผ๊ธฐ๋“ค์„ ํ™•์ธํ•ด๋ณด์„ธ์š”!"
android:text="@string/text_select_cat"
android:fontFamily="@font/pretendard_medium"
android:textSize="14sp"
android:textColor="@color/black"/>
Expand Down
20 changes: 18 additions & 2 deletions Nabi/presentation/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<!-- ๋กœ๊ทธ์ธ ํŽ˜์ด์ง€ -->
<string name="text_recent_login">์ตœ๊ทผ์— ์ด์šฉํ–ˆ์–ด์š”!</string>
<string name="text_team_name">Team ๋‚˜๋น„</string>
<string name="text_team_name">Team ๋„ˆ์˜๋น„๋ฐ€์นœ๊ตฌ</string>

<!-- ๋‹ฌ๋ ฅ -->
<string name="text_week_monday">M</string>
Expand All @@ -24,6 +24,14 @@
<string name="text_week_saturday">S</string>
<string name="text_week_sunday">S</string>

<!-- ์ผ๊ธฐ ๋ณด๊ธฐ - ์ผ๊ธฐ ์ƒ์„ธ ํŽ˜์ด์ง€ -->
<string name="text_modify">์ˆ˜์ •</string>
<string name="text_delete">์‚ญ์ œ</string>
<string name="text_emotion_reload">์ผ๊ธฐ ๊ฐ์ • ๋ถ„์„ํ•˜๊ธฐ</string>

<!-- ์ผ๊ธฐ ๋ณด๊ธฐ - ์ผ๊ธฐ ๊ฒ€์ƒ‰ ํŽ˜์ด์ง€ -->
<string name="hint_search_diary">๊ฒ€์ƒ‰์–ด๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”</string>

<!-- ์ผ๊ธฐ ๋ณด๊ธฐ - ๋‚ ์งœ ์„ ํƒ ํŽ˜์ด์ง€ -->
<string name="text_move_statistics">๋‚ด ๊ฐ์ • ํ†ต๊ณ„ ๋ณด๋Ÿฌ๊ฐ€๊ธฐ</string>
<string name="text_select_diary_title">์ผ๊ธฐ ๋ณด๊ธฐ</string>
Expand All @@ -35,7 +43,15 @@
<string name="text_warning1">์•ฑ์„ ์ข…๋ฃŒํ•˜๋ฉด ๋ฌธ์ œ๊ฐ€ ์ƒ๊ธธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.</string>
<string name="text_warning2">์กฐ๊ธˆ๋งŒ ๊ธฐ๋‹ค๋ ค์ฃผ์„ธ์š”!</string>

<!-- ์ผ๊ธฐ ์ž‘์„ฑ - ์ผ๊ธฐ ์ž‘์„ฑ ํŽ˜์ด์ง€ -->
<!-- ์ผ๊ธฐ ๋ณด๊ธฐ - ๊ฐ์ • ํ†ต๊ณ„ ํŽ˜์ด์ง€ -->
<string name="text_emotion_statistic_title">๊ฐ์ • ํ†ต๊ณ„</string>
<string name="text_select_cat">๊ฐ์ • ๊ณ ์–‘์ด๋“ค์„ ์„ ํƒํ•ด ํ•ด๋‹น ๊ฐ์ •์˜ ์ผ๊ธฐ๋“ค์„ ํ™•์ธํ•ด๋ณด์„ธ์š”!</string>

<!-- ๋Œ€ํ™”ํ•˜๊ธฐ - ์ฑ„ํŒ… ํŽ˜์ด์ง€ -->
<string name="text_chat_title">๋Œ€ํ™”ํ•˜๊ธฐ</string>
<string name="hint_chat">๋‚ด์šฉ์„ ์ž…๋ ฅํ•˜์„ธ์š”</string>

<!-- ๋งˆ์ดํŽ˜์ด์ง€ -->
<string name="text_change_nickname">๋‹‰๋„ค์ž„ ๋ณ€๊ฒฝํ•˜๊ธฐ</string>
<string name="text_load_diary">์ผ๊ธฐ ๊ฐ€์ ธ์˜ค๊ธฐ</string>
<string name="text_withdraw">ํšŒ์› ํƒˆํ‡ด</string>
Expand Down

0 comments on commit a1c4c5d

Please sign in to comment.