44 xmlns : tools =" http://schemas.android.com/tools" >
55
66 <data >
7- <import type =" android.view.View" />
7+
8+ <import type =" android.view.View" />
9+
810 <variable
911 name =" activity"
1012 type =" com.into.websoso.ui.main.myPage.myActivity.model.ActivitiesModel.ActivityModel" />
3638 <ImageView
3739 android : id =" @+id/iv_my_activity_profile"
3840 cornerRadius =" @{12f}"
41+ loadImageUrl =" @{userProfile.avatarImage}"
3942 android : layout_width =" 36dp"
4043 android : layout_height =" 36dp"
41- loadImageUrl =" @{userProfile.avatarImage}"
4244 app : layout_constraintBottom_toBottomOf =" parent"
4345 app : layout_constraintStart_toStartOf =" parent"
4446 app : layout_constraintTop_toTopOf =" parent"
7577 android : id =" @+id/tv_my_activity_created_date"
7678 android : layout_width =" wrap_content"
7779 android : layout_height =" wrap_content"
80+ android : layout_marginStart =" 8dp"
7881 android : text =' @{activity.createdDate}'
7982 android : textAppearance =" @style/body5"
8083 android : textColor =" @color/black"
81- android : layout_marginStart =" 8dp"
8284 app : layout_constraintBottom_toBottomOf =" @+id/cl_my_activity_profile"
8385 app : layout_constraintStart_toEndOf =" @+id/tv_my_activity_dot"
8486 app : layout_constraintTop_toTopOf =" @+id/cl_my_activity_profile" />
113115 android : layout_width =" wrap_content"
114116 android : layout_height =" wrap_content"
115117 android : layout_marginTop =" 16dp"
116- android : text =" @string/feed_spoiler_warning"
117118 android : onClick =" @{() -> onClick.onContentClick(activity.feedId)}"
119+ android : text =" @string/feed_spoiler_warning"
118120 android : textAppearance =" @style/body2"
119121 android : textColor =" @color/secondary_100_FF675D"
120122 app : isVisible =" @{activity.isSpoiler}"
143145 android : id =" @+id/cl_my_activity_novel_info"
144146 android : layout_width =" 0dp"
145147 android : layout_height =" wrap_content"
146- app : isVisible =" @{activity.isNovelInfoAvailable}"
147148 android : layout_marginStart =" 20dp"
148149 android : layout_marginTop =" 20dp"
149150 android : layout_marginEnd =" 20dp"
150- android : onClick =" @{() -> onClick.onNovelInfoClick(activity.novelId)}"
151151 android : background =" @drawable/btn_my_activity_novel_info"
152+ android : onClick =" @{() -> onClick.onNovelInfoClick(activity.novelId)}"
153+ app : isVisible =" @{activity.isNovelInfoAvailable}"
152154 app : layout_constraintEnd_toEndOf =" parent"
153155 app : layout_constraintStart_toStartOf =" parent"
154156 app : layout_constraintTop_toBottomOf =" @+id/tv_my_activity_content" >
218220 app : layout_constraintTop_toTopOf =" @+id/tv_my_activity_score" />
219221 </androidx .constraintlayout.widget.ConstraintLayout>
220222
221- <TextView
222- android : id =" @+id/tv_my_activity_genre"
223- android : layout_width =" 0dp"
224- android : layout_height =" wrap_content"
225- android : layout_marginTop =" 20dp"
226- android : text =' @{activity.relevantCategories}'
227- android : textAppearance =" @style/body2"
228- android : layout_marginStart =" 20dp"
229- android : textColor =" @color/gray_200_AEADB3"
230- app : layout_constraintStart_toStartOf =" parent"
231- app : layout_constraintTop_toBottomOf =" @+id/cl_my_activity_novel_info"
232- tools : text =" 로판" />
233-
234223 <androidx .constraintlayout.widget.ConstraintLayout
235224 android : id =" @+id/cl_my_activity_like"
236225 android : layout_width =" wrap_content"
237226 android : layout_height =" wrap_content"
238- android : layout_marginTop =" 24dp"
239- android : layout_marginBottom =" 28dp"
240227 android : layout_marginStart =" 20dp"
228+ android : layout_marginTop =" 10dp"
229+ android : layout_marginBottom =" 28dp"
241230 android : onClick =" @{(cl_my_activity_like) -> onClick.onLikeButtonClick(cl_my_activity_like, activity.feedId)}"
231+ app : isVisible =" @{activity.isPublic}"
242232 app : layout_constraintBottom_toTopOf =" @+id/view_my_activity_indicator"
243233 app : layout_constraintStart_toStartOf =" parent"
244- app : layout_constraintTop_toBottomOf =" @+id/tv_my_activity_genre " >
234+ app : layout_constraintTop_toBottomOf =" @+id/cl_my_activity_novel_info " >
245235
246236 <ImageView
247237 android : id =" @+id/iv_my_activity_thumb_up"
276266 android : layout_width =" wrap_content"
277267 android : layout_height =" wrap_content"
278268 android : layout_marginStart =" 8dp"
269+ app : isVisible =" @{activity.isPublic}"
279270 app : layout_constraintBottom_toBottomOf =" @+id/cl_my_activity_like"
280271 app : layout_constraintStart_toEndOf =" @+id/cl_my_activity_like"
281272 app : layout_constraintTop_toTopOf =" @+id/cl_my_activity_like" >
310301
311302 </androidx .constraintlayout.widget.ConstraintLayout>
312303
304+ <LinearLayout
305+ android : layout_width =" 0dp"
306+ android : layout_height =" wrap_content"
307+ android : layout_marginTop =" 10dp"
308+ android : layout_marginBottom =" 28dp"
309+ android : gravity =" center_vertical"
310+ android : paddingHorizontal =" 20dp"
311+ android : paddingVertical =" 10dp"
312+ app : isVisible =" @{!activity.isPublic}"
313+ app : layout_constraintBottom_toTopOf =" @+id/view_my_activity_indicator"
314+ app : layout_constraintEnd_toEndOf =" parent"
315+ app : layout_constraintStart_toStartOf =" parent"
316+ app : layout_constraintTop_toBottomOf =" @+id/cl_my_activity_novel_info" >
317+
318+ <ImageView
319+ android : layout_width =" 18dp"
320+ android : layout_height =" 18dp"
321+ android : src =" @drawable/ic_create_novel_lock"
322+ app : tint =" @color/gray_200_AEADB3" />
323+
324+ <TextView
325+ android : layout_width =" wrap_content"
326+ android : layout_height =" wrap_content"
327+ android : layout_marginStart =" 6dp"
328+ android : text =" @string/feed_private_label"
329+ android : textAppearance =" @style/body4"
330+ android : textColor =" @color/gray_200_AEADB3" />
331+ </LinearLayout >
332+
313333 <View
314334 android : id =" @+id/view_my_activity_indicator"
315335 android : layout_width =" match_parent"
318338 app : layout_constraintBottom_toBottomOf =" parent" />
319339
320340 </androidx .constraintlayout.widget.ConstraintLayout>
321- </layout >
341+ </layout >
0 commit comments