1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3
- xmlns : app =" http://schemas.android.com/apk/res-auto"
4
- android : id =" @+id/mRootView"
5
- android : orientation =" vertical"
6
- android : layout_width =" match_parent"
7
- android : layout_height =" match_parent" >
8
-
9
- <RelativeLayout
10
- android:layout_width=" match_parent"
11
- android:layout_height=" @dimen/dp_48"
12
- android:background=" @color/colorPrimary" >
13
-
14
- <ImageButton
15
- android:id=" @+id/mBackIB"
16
- android:layout_width=" wrap_content"
17
- android:layout_height=" wrap_content"
18
- android:src=" @mipmap/icon_back"
19
- android:layout_centerVertical=" true"
20
- android:paddingStart=" @dimen/dp_15"
21
- android:background=" @null"
22
- />
23
-
24
- <com .like.LikeButton
25
- android:id=" @+id/mFavorIb"
26
- app:icon_type=" heart"
27
- app:icon_size=" @dimen/dp_20"
28
- app:unlike_drawable=" @mipmap/icon_favorite_uncheck"
29
- app:like_drawable=" @mipmap/icon_favorite_check"
30
- android:layout_alignParentEnd=" true"
31
- android:layout_centerVertical=" true"
32
- android:layout_width=" wrap_content"
33
- android:layout_height=" wrap_content"
34
- android:visibility=" gone"
35
- />
36
-
37
- <TextView
38
- android:id=" @+id/mReposNameTv"
39
- android:layout_width=" wrap_content"
40
- android:layout_height=" wrap_content"
41
- android:textColor=" @android:color/white"
42
- android:layout_toRightOf=" @id/mBackIB"
43
- android:layout_toLeftOf=" @id/mFavorIb"
44
- android:singleLine=" true"
45
- android:ellipsize=" start"
46
- android:textSize=" @dimen/sp_20"
47
- android:gravity=" center"
48
- android:layout_centerInParent=" true"
49
- />
50
-
51
-
52
- </RelativeLayout >
3
+ xmlns : app =" http://schemas.android.com/apk/res-auto"
4
+ android : id =" @+id/mRootView"
5
+ android : layout_width =" match_parent"
6
+ android : layout_height =" match_parent"
7
+ android : orientation =" vertical" >
8
+
9
+ <RelativeLayout
10
+ android : layout_width =" match_parent"
11
+ android : layout_height =" @dimen/dp_48"
12
+ android : background =" @color/colorPrimary" >
13
+
14
+ <ImageButton
15
+ android : id =" @+id/mBackIB"
16
+ android : layout_width =" wrap_content"
17
+ android : layout_height =" wrap_content"
18
+ android : layout_centerVertical =" true"
19
+ android : background =" @null"
20
+ android : paddingStart =" @dimen/dp_15"
21
+ android : src =" @mipmap/icon_back" />
22
+
23
+ <com .like.LikeButton
24
+ android : id =" @+id/mFavorIb"
25
+ android : layout_width =" wrap_content"
26
+ android : layout_height =" wrap_content"
27
+ android : layout_alignParentEnd =" true"
28
+ android : layout_centerVertical =" true"
29
+ android : visibility =" gone"
30
+ app : icon_size =" @dimen/dp_20"
31
+ app : icon_type =" heart"
32
+ app : like_drawable =" @mipmap/icon_favorite_check"
33
+ app : unlike_drawable =" @mipmap/icon_favorite_uncheck" />
34
+
35
+ <TextView
36
+ android : id =" @+id/mReposNameTv"
37
+ android : layout_width =" wrap_content"
38
+ android : layout_height =" wrap_content"
39
+ android : layout_centerInParent =" true"
40
+ android : layout_toStartOf =" @id/mFavorIb"
41
+ android : layout_toEndOf =" @id/mBackIB"
42
+ android : ellipsize =" start"
43
+ android : gravity =" center"
44
+ android : singleLine =" true"
45
+ android : textColor =" @android:color/white"
46
+ android : textSize =" @dimen/sp_20" />
47
+
48
+
49
+ </RelativeLayout >
53
50
54
51
55
52
</LinearLayout >
0 commit comments