-
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.
[MERGE] KKUMI-108 #90 : 홈 화면에서 핀 정보 열람, 포스트 삭제
[FEAT] KKUMI-108 #90 : 홈 화면에서 핀 정보 열람, 포스트 삭제
- Loading branch information
Showing
41 changed files
with
942 additions
and
71 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
41 changes: 41 additions & 0 deletions
41
...common-ui/src/main/java/com/marastro/mykkumi/common_ui/post/ViewProductInfoBottomSheet.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,41 @@ | ||
package com.marastro.mykkumi.common_ui.post | ||
|
||
import android.os.Bundle | ||
import android.view.View | ||
import com.marastro.mykkumi.common_ui.base.BaseBottomSheetFragment | ||
import com.marastro.mykkumi.common_ui.databinding.FragmentViewProductInfoBottomSheetBinding | ||
import com.marastro.mykkumi.common_ui.R | ||
|
||
|
||
class ViewProductInfoBottomSheet : BaseBottomSheetFragment<FragmentViewProductInfoBottomSheetBinding>(R.layout.fragment_view_product_info_bottom_sheet) { | ||
|
||
private var productName: String = "" | ||
private var productUrl: String = "" | ||
|
||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | ||
super.onViewCreated(view, savedInstanceState) | ||
|
||
// 구매처 없는 경우 숨기기 | ||
if(productUrl.isEmpty()) { | ||
binding.textInputProductUrlLabel.visibility = View.GONE | ||
binding.textInputProductUrl.visibility = View.GONE | ||
} | ||
else { | ||
binding.textInputProductUrlLabel.visibility = View.VISIBLE | ||
binding.textInputProductUrl.visibility = View.VISIBLE | ||
} | ||
|
||
// 닫기버튼 | ||
binding.btnClose.setOnClickListener(View.OnClickListener { | ||
dismiss() | ||
}) | ||
} | ||
|
||
override suspend fun initView() { | ||
productName = arguments?.getString("productName") ?: "" | ||
productUrl = arguments?.getString("productUrl") ?: "" | ||
|
||
binding.textInputProductName.setText(productName) | ||
binding.textInputProductUrl.setText(productUrl) | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
core/common-ui/src/main/res/drawable/shape_back_light_round12.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,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
|
||
<solid | ||
android:color="@color/main_light_color"/> | ||
<corners | ||
android:radius="12dp"/> | ||
|
||
</shape> |
10 changes: 10 additions & 0 deletions
10
core/common-ui/src/main/res/drawable/shape_btn_round6_neutral100.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,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
|
||
<solid | ||
android:color="@color/neutral_100"/> | ||
<corners | ||
android:radius="6dp"/> | ||
|
||
</shape> |
104 changes: 104 additions & 0 deletions
104
core/common-ui/src/main/res/layout/fragment_view_product_info_bottom_sheet.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,104 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
tools:context="com.marastro.mykkumi.common_ui.post.ViewProductInfoBottomSheet"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="center_horizontal" | ||
android:orientation="vertical" | ||
android:paddingTop="20dp" | ||
android:paddingHorizontal="16dp"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textSize="18sp" | ||
android:textColor="@color/neutral_900" | ||
android:fontFamily="@font/pretendard_semibold" | ||
android:text="@string/title_view_product_info" | ||
android:layout_marginBottom="28dp"/> | ||
|
||
<LinearLayout | ||
android:id="@+id/linear_input_product_info" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="84dp" | ||
android:orientation="vertical"> | ||
|
||
<TextView | ||
android:id="@+id/text_input_product_name_label" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/label_product_name_for_input_product_info" | ||
android:textSize="15sp" | ||
android:textColor="@color/neutral_700" | ||
android:fontFamily="@font/pretendard_semibold" | ||
android:layout_marginBottom="8dp"/> | ||
|
||
<TextView | ||
android:id="@+id/text_input_product_name" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:textSize="14sp" | ||
android:textColor="@color/neutral_900" | ||
android:fontFamily="@font/pretendard_medium" | ||
android:textColorHint="@color/neutral_300" | ||
android:gravity="top" | ||
android:paddingVertical="14dp" | ||
android:paddingHorizontal="16dp" | ||
android:background="@drawable/shape_back_light_round12" /> | ||
|
||
<TextView | ||
android:id="@+id/text_input_product_url_label" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/label_product_url_for_input_product_info" | ||
android:textSize="15sp" | ||
android:textColor="@color/neutral_700" | ||
android:fontFamily="@font/pretendard_semibold" | ||
android:layout_marginTop="20dp" | ||
android:layout_marginBottom="8dp"/> | ||
|
||
<TextView | ||
android:id="@+id/text_input_product_url" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:textSize="14sp" | ||
android:textColor="@color/neutral_900" | ||
android:fontFamily="@font/pretendard_medium" | ||
android:textColorHint="@color/neutral_300" | ||
android:gravity="top" | ||
android:paddingVertical="14dp" | ||
android:paddingHorizontal="16dp" | ||
android:background="@drawable/shape_back_light_round12"/> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:id="@+id/linear_confirm_btns" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal" | ||
android:layout_marginTop="16dp" | ||
android:layout_marginBottom="10dp"> | ||
|
||
|
||
<TextView | ||
android:id="@+id/btn_close" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="@string/close_view_product_info" | ||
android:textColor="@color/white" | ||
android:textSize="15sp" | ||
android:fontFamily="@font/pretendard_semibold" | ||
android:background="@drawable/shape_btn_round12_primary" | ||
android:gravity="center" | ||
android:paddingVertical="15.5dp"/> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
|
||
</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
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
Oops, something went wrong.