-
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.
Showing
15 changed files
with
254 additions
and
4 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
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
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
36 changes: 36 additions & 0 deletions
36
presentation/src/main/java/kr/genti/presentation/main/create/CreateGuideDialog.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,36 @@ | ||
package kr.genti.presentation.main.create | ||
|
||
import android.os.Bundle | ||
import android.view.View | ||
import android.view.WindowManager | ||
import kr.genti.core.base.BaseDialog | ||
import kr.genti.core.extension.setOnSingleClickListener | ||
import kr.genti.presentation.R | ||
import kr.genti.presentation.databinding.DialogCreateGuideBinding | ||
|
||
class CreateGuideDialog : | ||
BaseDialog<DialogCreateGuideBinding>(R.layout.dialog_create_guide) { | ||
override fun onStart() { | ||
super.onStart() | ||
dialog?.window?.apply { | ||
setLayout( | ||
WindowManager.LayoutParams.MATCH_PARENT, | ||
WindowManager.LayoutParams.WRAP_CONTENT, | ||
) | ||
setBackgroundDrawableResource(R.color.transparent) | ||
} | ||
} | ||
|
||
override fun onViewCreated( | ||
view: View, | ||
savedInstanceState: Bundle?, | ||
) { | ||
super.onViewCreated(view, savedInstanceState) | ||
|
||
initCloseBtnListener() | ||
} | ||
|
||
private fun initCloseBtnListener() { | ||
binding.btnClose.setOnSingleClickListener { dismiss() } | ||
} | ||
} |
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
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
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
16 changes: 16 additions & 0 deletions
16
presentation/src/main/res/drawable/img_green_bg_2_word.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,16 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="62dp" | ||
android:height="32dp" | ||
android:viewportWidth="62" | ||
android:viewportHeight="32"> | ||
<path | ||
android:pathData="M16,1H1V16" | ||
android:strokeWidth="3" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#1CE718"/> | ||
<path | ||
android:pathData="M46,31L61,31L61,16" | ||
android:strokeWidth="3" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#1CE718"/> | ||
</vector> |
20 changes: 20 additions & 0 deletions
20
presentation/src/main/res/drawable/img_green_bg_3_word.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,20 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="77dp" | ||
android:height="32dp" | ||
android:viewportWidth="77" | ||
android:viewportHeight="32"> | ||
<group> | ||
<clip-path | ||
android:pathData="M0,0h77v32h-77z"/> | ||
<path | ||
android:pathData="M16,1H1V16" | ||
android:strokeWidth="3" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#1CE718"/> | ||
<path | ||
android:pathData="M61,31L76,31L76,16" | ||
android:strokeWidth="3" | ||
android:fillColor="#00000000" | ||
android:strokeColor="#1CE718"/> | ||
</group> | ||
</vector> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
119 changes: 119 additions & 0 deletions
119
presentation/src/main/res/layout/dialog_create_guide.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,119 @@ | ||
<?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> | ||
|
||
</data> | ||
|
||
<androidx.constraintlayout.widget.ConstraintLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<ImageView | ||
android:id="@+id/iv_guide_bg" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginHorizontal="30dp" | ||
android:adjustViewBounds="true" | ||
android:src="@drawable/img_guide_bg" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<ImageView | ||
android:id="@+id/btn_close" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:padding="12dp" | ||
android:src="@drawable/ic_close_dialog" | ||
app:layout_constraintEnd_toEndOf="@id/iv_guide_bg" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_guide_title_up" | ||
style="@style/TextAppearance.Genti.BodyLarge" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="20dp" | ||
android:layout_marginTop="30dp" | ||
android:text="@string/create_guide_tv_title_up" | ||
app:layout_constraintStart_toStartOf="@id/iv_guide_bg" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_guide_title_ratio" | ||
style="@style/TextAppearance.Genti.Headline4" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="12dp" | ||
android:layout_marginEnd="25dp" | ||
android:background="@drawable/img_green_bg_2_word" | ||
android:gravity="center" | ||
android:text="@string/create_guide_tv_ratio" | ||
app:layout_constraintEnd_toStartOf="@id/tv_guide_title_angle" | ||
app:layout_constraintTop_toBottomOf="@id/tv_guide_title_up" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_guide_title_angle" | ||
style="@style/TextAppearance.Genti.Headline4" | ||
android:layout_marginEnd="15dp" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="12dp" | ||
android:background="@drawable/img_green_bg_2_word" | ||
android:gravity="center" | ||
android:text="@string/create_guide_tv_angle" | ||
app:layout_constraintEnd_toEndOf="@id/iv_guide_bg" | ||
app:layout_constraintStart_toStartOf="@id/iv_guide_bg" | ||
app:layout_constraintTop_toBottomOf="@id/tv_guide_title_up" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_guide_title_frame" | ||
style="@style/TextAppearance.Genti.Headline4" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="25dp" | ||
android:layout_marginTop="12dp" | ||
android:background="@drawable/img_green_bg_3_word" | ||
android:gravity="center" | ||
android:text="@string/create_guide_tv_frame" | ||
app:layout_constraintStart_toEndOf="@id/tv_guide_title_angle" | ||
app:layout_constraintTop_toBottomOf="@id/tv_guide_title_up" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_guide_title_down" | ||
style="@style/TextAppearance.Genti.BodyLarge" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="12dp" | ||
android:layout_marginEnd="20dp" | ||
android:text="@string/create_guide_tv_title_down" | ||
app:layout_constraintEnd_toEndOf="@id/iv_guide_bg" | ||
app:layout_constraintTop_toBottomOf="@id/tv_guide_title_angle" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_guide_ex" | ||
style="@style/TextAppearance.Genti.BodyNumber" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="24dp" | ||
android:text="@string/create_guide_tv_ex" | ||
android:textColor="@color/green_1" | ||
app:layout_constraintBottom_toTopOf="@id/iv_guide_ex" | ||
app:layout_constraintStart_toStartOf="@id/iv_guide_bg" /> | ||
|
||
<ImageView | ||
android:id="@+id/iv_guide_ex" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginHorizontal="20dp" | ||
android:adjustViewBounds="true" | ||
android:src="@drawable/img_guide_ex" | ||
app:layout_constraintBottom_toBottomOf="@id/iv_guide_bg" | ||
app:layout_constraintEnd_toEndOf="@id/iv_guide_bg" | ||
app:layout_constraintStart_toStartOf="@id/iv_guide_bg" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
</layout> |
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
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
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