Skip to content

Commit

Permalink
[feat] detail_image / 리사이클러뷰 item 생성(#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
2chang5 committed Jul 22, 2022
1 parent 1165d44 commit 6ce5b06
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions shared/src/main/res/layout/item_mutable_chip_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@

<import type="android.view.View" />


<variable
name="isCancelable"
type="boolean" />
name="processState"
type="String" />

<variable
name="tagInfo"
Expand All @@ -20,7 +21,7 @@
android:id="@+id/cl_whole_tag"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="@{isCancelable ? true : false}"
android:clickable="@{processState == `ADD` ? false : true}"
android:paddingEnd="12dp">

<ImageView
Expand Down Expand Up @@ -51,10 +52,12 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/tv_tag_name" />

<TextView
<EditText
android:id="@+id/tv_tag_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:focusable="@{processState == `ADJUST` ? true : false}"
android:text="@{tagInfo.name}"
android:textAppearance="@style/body2"
android:textColor="@color/white"
Expand All @@ -69,7 +72,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:src="@drawable/ic_x_circle_fill_white"
android:visibility="@{isCancelable ? View.VISIBLE : View.GONE}"
android:visibility="@{processState == `DELETE` ? View.VISIBLE : View.GONE}"
app:layout_constraintBottom_toBottomOf="@id/tv_tag_name"
app:layout_constraintStart_toEndOf="@id/tv_tag_name"
app:layout_constraintTop_toTopOf="@id/tv_tag_name" />
Expand Down

0 comments on commit 6ce5b06

Please sign in to comment.