Skip to content

Commit

Permalink
#268 [FIX] : 사진도 투명하게
Browse files Browse the repository at this point in the history
  • Loading branch information
sohyun127 committed May 26, 2024
1 parent 87599f9 commit cda5aab
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 48 deletions.
32 changes: 16 additions & 16 deletions feature/src/main/res/layout/item_home_comment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,22 @@
app:layout_constraintStart_toStartOf="@id/iv_comment_profile"
app:layout_constraintTop_toBottomOf="@id/iv_comment_profile" />

<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/iv_home_feed_img"
setEmptyImageUrl="@{comment.commentImageUrl}"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginTop="8dp"
android:scaleType="centerCrop"
android:visibility="visible"
app:layout_constraintBottom_toTopOf="@id/btn_comment_heart"
app:layout_constraintDimensionRatio="270:330"
app:layout_constraintEnd_toEndOf="@id/tv_comment_content"
app:layout_constraintStart_toStartOf="@id/tv_comment_content"
app:layout_constraintTop_toBottomOf="@id/tv_comment_content"
app:shapeAppearance="@style/ShapeAppearanceOverlay.App.CornerRadius4"
tools:background="@color/primary" />

<View
android:id="@+id/view_comment_transparent_bg"
android:layout_width="0dp"
Expand Down Expand Up @@ -187,22 +203,6 @@
app:layout_constraintStart_toEndOf="@id/btn_comment_heart"
app:layout_constraintTop_toTopOf="@id/btn_comment_heart"
tools:text="544" />

<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/iv_home_feed_img"
setEmptyImageUrl="@{comment.commentImageUrl}"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginTop="8dp"
android:scaleType="centerCrop"
android:visibility="visible"
app:layout_constraintBottom_toTopOf="@id/btn_comment_heart"
app:layout_constraintDimensionRatio="270:330"
app:layout_constraintEnd_toEndOf="@id/tv_comment_content"
app:layout_constraintStart_toStartOf="@id/tv_comment_content"
app:layout_constraintTop_toBottomOf="@id/tv_comment_content"
app:shapeAppearance="@style/ShapeAppearanceOverlay.App.CornerRadius4"
tools:background="@color/primary" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
32 changes: 16 additions & 16 deletions feature/src/main/res/layout/item_home_feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,22 @@
app:layout_constraintStart_toStartOf="@id/iv_home_profile"
app:layout_constraintTop_toBottomOf="@id/iv_home_profile" />

<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/iv_home_feed_img"
setEmptyImageUrl="@{feed.contentImageUrl}"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginTop="8dp"
android:scaleType="centerCrop"
android:visibility="visible"
app:layout_constraintBottom_toTopOf="@id/btn_home_heart"
app:layout_constraintDimensionRatio="270:330"
app:layout_constraintEnd_toEndOf="@id/tv_home_feed_content"
app:layout_constraintStart_toStartOf="@id/tv_home_feed_content"
app:layout_constraintTop_toBottomOf="@id/tv_home_feed_content"
app:shapeAppearance="@style/ShapeAppearanceOverlay.App.CornerRadius4"
tools:background="@color/primary" />

<View
android:id="@+id/view_home_transparent_bg"
android:layout_width="0dp"
Expand Down Expand Up @@ -180,21 +196,5 @@
app:layout_constraintStart_toEndOf="@id/btn_home_heart"
app:layout_constraintTop_toTopOf="@id/btn_home_heart"
tools:text="541" />

<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/iv_home_feed_img"
setEmptyImageUrl="@{feed.contentImageUrl}"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginTop="8dp"
android:scaleType="centerCrop"
android:visibility="visible"
app:layout_constraintBottom_toTopOf="@id/btn_home_heart"
app:layout_constraintDimensionRatio="270:330"
app:layout_constraintEnd_toEndOf="@id/tv_home_feed_content"
app:layout_constraintStart_toStartOf="@id/tv_home_feed_content"
app:layout_constraintTop_toBottomOf="@id/tv_home_feed_content"
app:shapeAppearance="@style/ShapeAppearanceOverlay.App.CornerRadius4"
tools:background="@color/primary" />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
32 changes: 16 additions & 16 deletions feature/src/main/res/layout/item_my_page_comment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,22 @@
tools:text="돈비를 사용하면 진짜 돈비를 맞을 수 있나요?
저 돈비 맞고 싶어요 돈벼락이 최고입니다. 그나저나 돈비 정말 흥미로운 서비스인 것 같아요 어떻게 이런 기획을 ? 대박 ㄷ ㄷ ㄷ돈비를 사용하면 진짜 돈비를 맞을 수 있나요?" />

<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/iv_home_feed_img"
setEmptyImageUrl="@{feed.commentImageUrl}"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginTop="8dp"
android:scaleType="centerCrop"
android:visibility="visible"
app:layout_constraintBottom_toTopOf="@id/iv_comment_ghost_fill_green"
app:layout_constraintDimensionRatio="270:330"
app:layout_constraintEnd_toEndOf="@id/tv_comment_content"
app:layout_constraintStart_toStartOf="@id/tv_comment_content"
app:layout_constraintTop_toBottomOf="@id/tv_comment_content"
app:shapeAppearance="@style/ShapeAppearanceOverlay.App.CornerRadius4"
tools:background="@color/primary" />

<View
android:id="@+id/view_home_transparent_bg"
android:layout_width="0dp"
Expand Down Expand Up @@ -151,21 +167,5 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/btn_comment_heart"
tools:text="54" />

<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/iv_home_feed_img"
setEmptyImageUrl="@{feed.commentImageUrl}"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginTop="8dp"
android:scaleType="centerCrop"
android:visibility="visible"
app:layout_constraintBottom_toTopOf="@id/iv_comment_ghost_fill_green"
app:layout_constraintDimensionRatio="270:330"
app:layout_constraintEnd_toEndOf="@id/tv_comment_content"
app:layout_constraintStart_toStartOf="@id/tv_comment_content"
app:layout_constraintTop_toBottomOf="@id/tv_comment_content"
app:shapeAppearance="@style/ShapeAppearanceOverlay.App.CornerRadius4"
tools:background="@color/primary" />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>

0 comments on commit cda5aab

Please sign in to comment.