File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 96
96
<TextView
97
97
android : id =" @+id/tv_detail_book_author"
98
98
style =" @style/H2Md"
99
- android : layout_width =" wrap_content "
99
+ android : layout_width =" 0dp "
100
100
android : layout_height =" wrap_content"
101
101
android : layout_marginHorizontal =" 80dp"
102
102
android : layout_marginTop =" 4dp"
103
+ android : gravity =" center"
103
104
android : text =" @{vm.bookData.author}"
104
105
android : textColor =" @color/peeka_red"
105
106
app : layout_constraintEnd_toEndOf =" parent"
150
151
android : paddingStart =" 14dp"
151
152
android : text =" @string/book_memo"
152
153
android : textColor =" @color/peeka_white"
154
+ android : visibility =" @{vm.isMyDetailView == true ? View.VISIBLE : View.INVISIBLE}"
153
155
app : layout_constraintEnd_toEndOf =" @id/tv_detail_book_content"
154
156
app : layout_constraintStart_toStartOf =" @id/tv_detail_book_content"
155
157
app : layout_constraintTop_toBottomOf =" @id/tv_detail_get_content" />
164
166
android : paddingHorizontal =" 14dp"
165
167
android : paddingVertical =" 12dp"
166
168
android : textColor =" @color/peeka_red"
169
+ android : visibility =" @{vm.isMyDetailView == true ? View.VISIBLE : View.INVISIBLE}"
167
170
app : layout_constraintDimensionRatio =" 4"
168
171
app : layout_constraintEnd_toEndOf =" @id/tv_detail_book_content"
169
172
app : layout_constraintStart_toStartOf =" @id/tv_detail_book_content"
You can’t perform that action at this time.
0 commit comments