fix(community): 그리드 잠금 오버레이를 보정한다

This commit is contained in:
2026-07-12 09:27:59 +09:00
parent bc5fd46671
commit 94d2773d1e
3 changed files with 46 additions and 39 deletions

View File

@@ -76,8 +76,6 @@ class CreatorChannelCommunityGridAdapter(
!item.isLocked && item.imageMode != CreatorChannelCommunityImageMode.Image
tvCreatorChannelCommunityGridTextPreview.text = item.gridPreviewText
layoutCreatorChannelCommunityGridLockedOverlay.isVisible = item.isLocked
ivCreatorChannelCommunityGridLock.isVisible = item.isLocked
tvCreatorChannelCommunityGridLockPrice.isVisible = item.isLocked
tvCreatorChannelCommunityGridLockPrice.text = item.price.moneyFormat()
ivCreatorChannelCommunityGridNotice.isVisible = item.showNotice
}

View File

@@ -41,49 +41,54 @@
tools:text="텍스트만 있는 게시물"
tools:visibility="visible" />
<View
<LinearLayout
android:id="@+id/layout_creator_channel_community_grid_locked_overlay"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/color_26909090"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:visibility="visible" />
<ImageView
android:id="@+id/iv_creator_channel_community_grid_lock"
android:layout_width="24dp"
android:layout_height="24dp"
android:contentDescription="@null"
android:src="@drawable/ic_new_community_lock"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:visibility="visible" />
<TextView
android:id="@+id/tv_creator_channel_community_grid_lock_price"
style="@style/Typography.Body3"
android:layout_width="70dp"
android:layout_height="36dp"
android:layout_marginTop="@dimen/spacing_4"
android:background="@drawable/bg_creator_channel_community_price"
android:drawableStart="@drawable/ic_bar_cash"
android:drawablePadding="@dimen/spacing_6"
android:gravity="center"
android:includeFontPadding="false"
android:textColor="@color/black"
android:orientation="vertical"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/iv_creator_channel_community_grid_lock"
tools:text="30"
tools:visibility="visible" />
app:layout_constraintTop_toTopOf="parent"
tools:visibility="visible">
<ImageView
android:layout_width="24dp"
android:layout_height="24dp"
android:contentDescription="@null"
android:src="@drawable/ic_new_community_lock" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/spacing_4"
android:background="@drawable/bg_creator_channel_community_price"
android:gravity="center"
android:orientation="horizontal"
android:paddingHorizontal="12dp"
android:paddingVertical="6dp">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@null"
android:src="@drawable/ic_bar_cash" />
<TextView
android:id="@+id/tv_creator_channel_community_grid_lock_price"
style="@style/Typography.Body3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_6"
android:gravity="center"
android:includeFontPadding="false"
android:textColor="@color/black"
tools:text="30" />
</LinearLayout>
</LinearLayout>
<ImageView
android:id="@+id/iv_creator_channel_community_grid_notice"

View File

@@ -107,6 +107,10 @@ class CreatorChannelCommunityFragmentLayoutTest {
assertNotNull(item.findViewById<TextView>(R.id.tv_creator_channel_community_grid_lock_price))
assertNotNull(item.findViewById<ImageView>(R.id.iv_creator_channel_community_grid_notice))
assertTrue(itemLayout.contains("android:id=\"@+id/layout_creator_channel_community_grid_root\""))
assertTrue(itemLayout.contains("android:id=\"@+id/layout_creator_channel_community_grid_locked_overlay\""))
assertTrue(itemLayout.contains("android:layout_width=\"match_parent\""))
assertTrue(itemLayout.contains("android:layout_height=\"match_parent\""))
assertTrue(itemLayout.contains("android:gravity=\"center\""))
assertTrue(itemLayout.contains("android:layout_width=\"wrap_content\""))
assertTrue(itemLayout.contains("android:layout_height=\"wrap_content\""))
assertTrue(!itemLayout.contains("android:layout_margin=\"@dimen/spacing_4\""))