Skip to content

Commit

Permalink
[Chore/#43] 코드 정렬
Browse files Browse the repository at this point in the history
  • Loading branch information
ss99x2002 committed Jul 11, 2023
1 parent 39289b9 commit 04a7752
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class AnswerActivity : BindingActivity<ActivityAnswerBinding>(R.layout.activity_
.show(supportFragmentManager, "BackAnswerDialog")
}

private fun showConfirmDialog(){
private fun showConfirmDialog() {
ConfirmAnswerDialogFragment()
.show(supportFragmentManager,"ConfirmAnswerDialog")
.show(supportFragmentManager, "ConfirmAnswerDialog")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ class BackAnswerDialogFragment : DialogFragment() {
WindowManager.LayoutParams.WRAP_CONTENT
)
}
private fun setBtnClickEvent(){
with(binding){

private fun setBtnClickEvent() {
with(binding) {
btnCancel.setOnClickListener {
dismiss()
}
Expand All @@ -48,6 +49,7 @@ class BackAnswerDialogFragment : DialogFragment() {
}
}
}

private fun backgroundDesign() {
dialog?.window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class DeleteAccountDialogFragment : DialogFragment() {
dialog?.window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
}

private fun setBtnClickEvent(){
with(binding){
private fun setBtnClickEvent() {
with(binding) {
btnCancel.setOnClickListener {
dismiss()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,28 @@ class SettingFragment : BindingFragment<FragmentSettingBinding>(R.layout.fragmen
startActivity(Intent(requireActivity(), ManageAccountActivity::class.java))
}
clAboutUmbba.setOnClickListener {
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://www.notion.so/f1a14bf60ed4421f9b3761ef88906adb")))
startActivity(
Intent(
Intent.ACTION_VIEW,
Uri.parse("https://www.notion.so/f1a14bf60ed4421f9b3761ef88906adb")
)
)
}
clTos.setOnClickListener {
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://www.notion.so/f1a14bf60ed4421f9b3761ef88906adb")))
startActivity(
Intent(
Intent.ACTION_VIEW,
Uri.parse("https://www.notion.so/f1a14bf60ed4421f9b3761ef88906adb")
)
)
}
clNotice.setOnClickListener {
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://www.notion.so/f1a14bf60ed4421f9b3761ef88906adb")))
startActivity(
Intent(
Intent.ACTION_VIEW,
Uri.parse("https://www.notion.so/f1a14bf60ed4421f9b3761ef88906adb")
)
)
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/res/layout/fragemnt_delete_account_dialog.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<data>


Expand Down Expand Up @@ -42,8 +43,8 @@
android:background="@drawable/shape_grey_btn_r50_stroke_rect"
android:text="@string/cancel"
android:textColor="@color/umbba_black"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/btn_confirm"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<androidx.appcompat.widget.AppCompatButton
Expand All @@ -54,8 +55,8 @@
android:background="@drawable/shape_error_btn_r50_rect"
android:text="@string/confirm"
android:textColor="@color/umbba_white"
app:layout_constraintStart_toEndOf="@id/btn_cancel"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/btn_cancel"
app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/fragment_back_answer_dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
android:background="@drawable/shape_grey_btn_r50_stroke_rect"
android:text="@string/cancel"
android:textColor="@color/umbba_black"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/btn_confirm"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<androidx.appcompat.widget.AppCompatButton
Expand All @@ -54,8 +54,8 @@
android:background="@drawable/shape_pri500_btn_r50_rect"
android:text="@string/confirm"
android:textColor="@color/umbba_white"
app:layout_constraintStart_toEndOf="@id/btn_cancel"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/btn_cancel"
app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/fragment_confirm_answer_dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@
android:stateListAnimator="@null"
android:text="@string/back"
android:textColor="@color/umbba_black"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/btn_confirm"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<androidx.appcompat.widget.AppCompatButton
Expand All @@ -117,8 +117,8 @@
android:background="@drawable/shape_pri500_btn_r50_rect"
android:text="@string/save"
android:textColor="@color/umbba_white"
app:layout_constraintStart_toEndOf="@id/btn_back"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/btn_back"
app:layout_constraintTop_toTopOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>
Expand Down

0 comments on commit 04a7752

Please sign in to comment.