20
20
android : layout_height =" wrap_content"
21
21
android : onClick =" @{(v) -> listener.onItemClick(v, ivUser, user)}" >
22
22
23
- <androidx .constraintlayout.widget.ConstraintLayout
23
+ <LinearLayout
24
24
android : layout_width =" match_parent"
25
25
android : layout_height =" wrap_content"
26
- android : padding =" 10dp" >
27
-
28
- <androidx .constraintlayout.widget.ConstraintLayout
29
- android : id =" @+id/layout_user_info"
30
- android : layout_width =" 0dp"
31
- android : layout_height =" 0dp"
32
- android : layout_margin =" 10dp"
33
- android : orientation =" vertical"
34
- app : layout_constraintBottom_toBottomOf =" @id/iv_user"
35
- app : layout_constraintEnd_toEndOf =" parent"
36
- app : layout_constraintStart_toEndOf =" @id/iv_user"
37
- app : layout_constraintTop_toTopOf =" @id/iv_user" >
38
-
39
- <ImageView
40
- android : id =" @+id/iv_user_page"
41
- style =" @style/ImageView_User_Profile_Info_Style"
42
- android : src =" @drawable/icon_user_page"
43
- app : layout_constraintBottom_toBottomOf =" parent"
44
- app : layout_constraintStart_toStartOf =" @id/tv_user_nickname" />
45
-
46
- <TextView
47
- android : id =" @+id/tv_user_nickname"
48
- style =" @style/TextView_User_Profile_Style"
49
- android : layout_width =" 0dp"
50
- app : layout_constraintEnd_toEndOf =" parent"
51
- app : layout_constraintStart_toStartOf =" parent"
52
- app : layout_constraintTop_toTopOf =" parent"
53
- tools : text =" 홍길동"
54
- android : text =" @{user.login}" />
55
-
56
- <TextView
57
- android : id =" @+id/tv_user_page"
58
- style =" @style/TextView_User_Profile_Style"
59
- android : layout_width =" 0dp"
60
- android : layout_marginStart =" 5dp"
61
- app : layout_constraintBottom_toBottomOf =" @id/iv_user_page"
62
- app : layout_constraintEnd_toEndOf =" parent"
63
- app : layout_constraintStart_toEndOf =" @id/iv_user_page"
64
- app : layout_constraintTop_toTopOf =" @id/iv_user_page"
65
- android : text =" @{user.htmlUrl}"
66
- tools : text =" www.xxxx.com" />
67
- </androidx .constraintlayout.widget.ConstraintLayout>
26
+ android : padding =" 10dp"
27
+ android : orientation =" horizontal" >
68
28
69
29
<de .hdodenhof.circleimageview.CircleImageView
70
30
android : id =" @+id/iv_user"
71
31
style =" @style/ImageView_Circle_Style"
72
32
app : imageUrl =" @{user.avatarUrl}"
73
33
app : placeholder =" @{@drawable/icon_profile_blank}"
74
- android : transitionName =" @string/transition_user_profile_img"
75
- app : layout_constraintStart_toStartOf =" parent"
76
- app : layout_constraintTop_toTopOf =" parent" />
34
+ android : transitionName =" @string/transition_user_profile_img" />
35
+
36
+ <TextView
37
+ android : id =" @+id/tv_user_nickname"
38
+ style =" @style/TextView_User_Profile_Style"
39
+ android : layout_width =" 0dp"
40
+ android : layout_margin =" 10dp"
41
+ android : layout_gravity =" center"
42
+ android : layout_weight =" 1"
43
+ tools : text =" 홍길동"
44
+ android : text =" @{user.login}" />
77
45
78
- </androidx .constraintlayout.widget.ConstraintLayout >
46
+ </LinearLayout >
79
47
80
48
</androidx .cardview.widget.CardView>
81
49
</layout >
0 commit comments