Skip to content

Commit 4738d28

Browse files
authored
Merge pull request #270 from team-peekabook/feature/#269-ui-detail-visible
2 parents e4dc55d + fe372d6 commit 4738d28

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/main/res/layout/activity_detail.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,11 @@
9696
<TextView
9797
android:id="@+id/tv_detail_book_author"
9898
style="@style/H2Md"
99-
android:layout_width="wrap_content"
99+
android:layout_width="0dp"
100100
android:layout_height="wrap_content"
101101
android:layout_marginHorizontal="80dp"
102102
android:layout_marginTop="4dp"
103+
android:gravity="center"
103104
android:text="@{vm.bookData.author}"
104105
android:textColor="@color/peeka_red"
105106
app:layout_constraintEnd_toEndOf="parent"
@@ -150,6 +151,7 @@
150151
android:paddingStart="14dp"
151152
android:text="@string/book_memo"
152153
android:textColor="@color/peeka_white"
154+
android:visibility="@{vm.isMyDetailView == true ? View.VISIBLE : View.INVISIBLE}"
153155
app:layout_constraintEnd_toEndOf="@id/tv_detail_book_content"
154156
app:layout_constraintStart_toStartOf="@id/tv_detail_book_content"
155157
app:layout_constraintTop_toBottomOf="@id/tv_detail_get_content" />
@@ -164,6 +166,7 @@
164166
android:paddingHorizontal="14dp"
165167
android:paddingVertical="12dp"
166168
android:textColor="@color/peeka_red"
169+
android:visibility="@{vm.isMyDetailView == true ? View.VISIBLE : View.INVISIBLE}"
167170
app:layout_constraintDimensionRatio="4"
168171
app:layout_constraintEnd_toEndOf="@id/tv_detail_book_content"
169172
app:layout_constraintStart_toStartOf="@id/tv_detail_book_content"

0 commit comments

Comments
 (0)