-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
presentation/src/main/java/com/depromeet/presentation/viewfinder/dialog/ReportDialog.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.depromeet.presentation.viewfinder.dialog | ||
|
||
import android.os.Bundle | ||
import android.view.View | ||
import com.depromeet.core.base.BindingBottomSheetDialog | ||
import com.depromeet.presentation.R | ||
import com.depromeet.presentation.databinding.FragmentReportDialogBinding | ||
import com.depromeet.presentation.extension.toast | ||
|
||
class ReportDialog : BindingBottomSheetDialog<FragmentReportDialogBinding>( | ||
R.layout.fragment_report_dialog, | ||
FragmentReportDialogBinding::inflate | ||
) { | ||
companion object { | ||
const val TAG = "ReportDialog" | ||
|
||
fun newInstance(): ReportDialog { | ||
val args = Bundle() | ||
|
||
val fragment = ReportDialog() | ||
fragment.arguments = args | ||
return fragment | ||
} | ||
} | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setStyle(STYLE_NORMAL, R.style.TransparentBottomSheetDialogFragment) | ||
} | ||
|
||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | ||
super.onViewCreated(view, savedInstanceState) | ||
|
||
binding.tvReport.setOnClickListener { | ||
toast("구글폼 드가자") | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
presentation/src/main/res/layout/fragment_report_dialog.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@drawable/rect_white_fill_32"> | ||
|
||
<TextView | ||
android:id="@+id/tv_report" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginVertical="30dp" | ||
android:padding="12dp" | ||
android:text="신고하기" | ||
android:textColor="#121212" | ||
android:textSize="20sp" | ||
android:textStyle="bold" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> |