7
7
android : layout_centerVertical =" true"
8
8
android : minHeight =" 72dp" >
9
9
10
- <Button
10
+ <Button
11
+ android : layout_width =" wrap_content"
12
+ android : layout_height =" wrap_content"
13
+ android : id =" @+id/permission_request_button"
14
+ android : text =" @string/display_nearby_notification_summary"
15
+ android : layout_centerInParent =" true"
16
+ android : layout_marginLeft =" 8dp"
17
+ android : layout_marginRight =" 8dp"
18
+ android : layout_marginTop =" 8dp"
19
+ android : minWidth =" 48dp"
20
+ android : textColor =" @android:color/white"
21
+ android : singleLine =" true"
22
+ android : theme =" ?attr/mainScreenNearbyPermissionbutton"
23
+ style =" @style/Widget.AppCompat.Button.Borderless" />
24
+
25
+
26
+ <LinearLayout
27
+ android : layout_width =" match_parent"
28
+ android : layout_height =" wrap_content"
29
+ android : id =" @+id/content_layout"
30
+ android : layout_centerInParent =" true"
31
+ >
32
+
33
+ <ProgressBar
11
34
android : layout_width =" wrap_content"
12
35
android : layout_height =" wrap_content"
13
- android : id =" @+id/permission_request_button"
14
- android : text =" @string/display_nearby_notification_summary"
36
+ android : id =" @+id/progressBar"
15
37
android : layout_centerInParent =" true"
16
- android : layout_marginLeft =" 8dp"
17
- android : layout_marginRight =" 8dp"
18
- android : layout_marginTop =" 8dp"
19
- android : minWidth =" 48dp"
20
- android : textColor =" @android:color/white"
21
- android : singleLine =" true"
22
- android : theme =" ?attr/mainScreenNearbyPermissionbutton"
23
- style =" @style/Widget.AppCompat.Button.Borderless" />
24
38
/>
25
39
26
- <RelativeLayout
40
+ <ImageView
41
+ android : id =" @+id/nearby_icon"
42
+ android : layout_width =" 40dp"
43
+ android : layout_height =" 40dp"
44
+ android : layout_marginLeft =" 16dp"
45
+ android : layout_marginStart =" 16dp"
46
+ android : scaleType =" centerCrop"
47
+ app : srcCompat =" @drawable/ic_location_white_24dp" />
48
+
49
+
50
+ <LinearLayout
27
51
android : layout_width =" match_parent"
28
52
android : layout_height =" wrap_content"
29
- android : id =" @+id/content_layout"
30
53
android : layout_centerInParent =" true"
54
+ android : orientation =" horizontal"
55
+ android : layout_gravity =" center_vertical"
56
+ android : gravity =" center_vertical"
57
+ android : weightSum =" 4"
31
58
>
32
59
33
- <ProgressBar
34
- android : layout_width =" wrap_content"
60
+ <TextView
61
+ android : id =" @+id/nearby_title"
62
+ android : layout_width =" 0dp"
35
63
android : layout_height =" wrap_content"
36
- android : id = " @+id/progressBar "
64
+ android : layout_weight = " 3 "
37
65
android : layout_centerInParent =" true"
38
- />
39
-
40
- <ImageView
41
- android : id =" @+id/nearby_icon"
42
- android : layout_width =" 40dp"
43
- android : layout_height =" 40dp"
44
66
android : layout_marginLeft =" 16dp"
45
- android : layout_marginStart =" 16dp"
46
- android : scaleType =" centerCrop"
47
- app : srcCompat =" @drawable/ic_location_white_24dp" />
67
+ android : layout_marginRight =" 16dp"
68
+ tools : text =" test distance"
69
+ android : textColor =" @android:color/white"
70
+ android : singleLine =" true"
71
+ >
72
+ </TextView >
48
73
49
- <LinearLayout
50
- android : layout_width =" match_parent"
74
+ <TextView
75
+ android : id =" @+id/nearby_distance"
76
+ android : layout_width =" 0dp"
51
77
android : layout_height =" wrap_content"
52
- android : layout_centerInParent =" true"
53
- android : orientation =" horizontal"
54
- android : layout_toRightOf =" @id/nearby_icon"
55
- android : weightSum =" 4"
78
+ android : layout_weight =" 1"
79
+ android : layout_marginLeft =" 16dp"
80
+ android : layout_marginRight =" 16dp"
81
+ android : minWidth =" 48dp"
82
+ android : textAppearance =" @style/TextAppearance.AppCompat.Caption"
83
+ tools : text =" test distance"
84
+ android : textColor =" @android:color/white"
85
+ android : singleLine =" true"
56
86
>
57
87
58
- <TextView
59
- android : id =" @+id/nearby_title"
60
- android : layout_width =" 0dp"
61
- android : layout_height =" wrap_content"
62
- android : layout_weight =" 3"
63
- android : layout_toRightOf =" @id/nearby_icon"
64
- android : layout_centerInParent =" true"
65
- android : layout_marginLeft =" 16dp"
66
- android : layout_marginRight =" 16dp"
67
- tools : text =" test distance"
68
- android : textColor =" @android:color/white"
69
- android : singleLine =" true"
70
- >
71
- </TextView >
72
-
73
- <TextView
74
- android : id =" @+id/nearby_distance"
75
- android : layout_width =" 0dp"
76
- android : layout_height =" wrap_content"
77
- android : layout_weight =" 1"
78
- android : layout_alignParentEnd =" true"
79
- android : layout_alignParentRight =" true"
80
- android : layout_centerInParent =" true"
81
- android : layout_marginLeft =" 16dp"
82
- android : layout_marginRight =" 16dp"
83
- android : minWidth =" 48dp"
84
- android : textAppearance =" @style/TextAppearance.AppCompat.Caption"
85
- tools : text =" test distance"
86
- android : textColor =" @android:color/white"
87
- android : singleLine =" true"
88
- >
89
-
90
- </TextView >
88
+ </TextView >
91
89
92
- </LinearLayout >
90
+ </LinearLayout >
93
91
94
- </ RelativeLayout >
92
+ </ LinearLayout >
95
93
96
94
</RelativeLayout >
0 commit comments