Skip to content

Commit

Permalink
๐Ÿซก ์˜ค๋ฅ˜ ์‹ ๊ณ  | ๋ฒ„ํŠผ ๋น„ํ™œ์„ฑ ๊ธฐ๋Šฅ ์ œ๊ฑฐ ๋ฐ Hint ์ˆ˜์ • (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
moondev03 authored Oct 2, 2024
1 parent baf064d commit 5daee5a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,40 +73,16 @@ class ErrorReportFragment : BaseFragment<FragmentErrorReportBinding>() {
val len = s?.length ?: 0
if (len >= 10) {
binding.tvReportComment.visibility = View.GONE

binding.btnSendReport.setTextColor(
ContextCompat.getColor(
requireContext(),
R.color.primary2
)
)
binding.btnSendReport.background = ContextCompat.getDrawable(
requireContext(),
R.drawable.shape_keyword_add_button_bg
)
binding.btnSendReport.isClickable = true
} else {
binding.tvReportComment.visibility = View.VISIBLE

binding.btnSendReport.setTextColor(
ContextCompat.getColor(
requireContext(),
R.color.red_gray_100
)
)
binding.btnSendReport.background = ColorDrawable(
ContextCompat.getColor(
requireContext(),
R.color.red_gray_300
)
)
binding.btnSendReport.isClickable = false
}
}
})

binding.btnSendReport.setOnClickListener {
viewModel.postErrorReport(binding.etReport.text.toString())
if(binding.etReport.text.length < 10) {
binding.tvReportComment.visibility = View.VISIBLE
} else {
viewModel.postErrorReport(binding.etReport.text.toString())
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@
android:gravity="top|start"
style="@style/Paragraph_Medium"
android:textColor="@color/primary3"
android:hint="์–ด๋–ค ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‚˜์š”?"
android:hint="10์ž ์ด์ƒ, 200์ž ์ดํ•˜๋กœ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”."
android:textColorHint="@color/red_gray_400"

android:background="@drawable/shape_error_report_bg"/>
android:background="@drawable/shape_error_report_bg"
tools:ignore="Autofill" />

<TextView
android:id="@+id/tv_report_comment"
Expand All @@ -91,7 +92,8 @@
android:layout_marginStart="12dp"
android:layout_marginTop="8dp"

tools:text="์—ด ๊ธ€์ž ์ด์ƒ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”."
android:visibility="gone"
android:text="์—ด ๊ธ€์ž ์ด์ƒ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”."
style="@style/Paragraph_Small"
android:textColor="#FF0000" />

Expand All @@ -100,9 +102,9 @@
style="@style/Heading_Medium"
android:layout_width="178dp"
android:layout_height="56dp"
android:background="@color/red_gray_300"
android:background="@drawable/shape_keyword_add_button_bg"
android:text="์‹ ๊ณ ํ•˜๊ธฐ"
android:textColor="@color/red_gray_100"
android:textColor="@color/primary2"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down

0 comments on commit 5daee5a

Please sign in to comment.