55 android : layout_height =" wrap_content"
66 android : layout_margin =" @dimen/card_margin" >
77
8-
9- <TextView
10- android : layout_width =" wrap_content"
11- android : layout_height =" wrap_content"
12- android : textColor =" #fafafa"
13- android : layout_marginTop =" 5dp"
14- android : layout_marginStart =" 7dp"
15- android : textSize =" 12dp"
16- android : text =" Weather data by Open-Meteo.com" />
17-
188 <RelativeLayout
199 android : layout_width =" match_parent"
20- android : layout_height =" match_parent "
21- android : layout_gravity =" center_vertical" >
22-
10+ android : layout_height =" wrap_content "
11+ android : layout_gravity =" center_vertical"
12+ android : background = " @color/backgroundBlue " >
2313
2414 <TextView
25- android : id =" @+id/card_overview_temperature "
26- android : layout_width =" wrap_content "
15+ android : id =" @+id/card_overview_header "
16+ android : layout_width =" match_parent "
2717 android : layout_height =" wrap_content"
28- android : layout_alignParentEnd = " true "
29- android : layout_centerVertical = " true "
18+ android : layout_marginStart = " 10dp "
19+ android : layout_marginTop = " 10dp "
3020 android : layout_marginEnd =" 10dp"
31- android : background =" @drawable/rounded_corner"
32- android : paddingLeft =" 7dp"
33- android : paddingRight =" 7dp"
21+ android : layout_marginBottom =" 10dp"
22+ android : gravity =" center"
23+ android : text =" @string/card_today_heading"
24+ android : textAllCaps =" true"
3425 android : textColor =" @color/colorPrimaryDark"
35- android : textSize =" 45dp" />
26+ android : textStyle =" bold" />
27+
28+ <View
29+ android : id =" @+id/card_overview_header_spacer"
30+ android : layout_width =" match_parent"
31+ android : layout_height =" 1dp"
32+ android : layout_below =" @id/card_overview_header"
33+ android : background =" @color/white" />
3634
3735 <TextView
3836 android : id =" @+id/card_overview_update_time"
3937 android : layout_width =" wrap_content"
4038 android : layout_height =" wrap_content"
41- android : layout_alignParentTop = " true "
39+ android : layout_alignBaseline = " @id/card_overview_header "
4240 android : layout_alignParentEnd =" true"
4341 android : layout_marginEnd =" 10dp"
4442 android : paddingLeft =" 7dp"
4543 android : paddingRight =" 7dp"
4644 android : textColor =" #fafafa"
4745 android : textSize =" 18dp" />
4846
47+
48+ <TextView
49+ android : id =" @+id/card_overview_sunrise_sunset"
50+ android : layout_alignBaseline =" @id/card_overview_remaining_today"
51+ android : layout_alignParentEnd =" true"
52+ android : layout_width =" wrap_content"
53+ android : layout_height =" wrap_content"
54+ android : textSize =" 15dp"
55+ android : textColor =" @color/colorPrimaryDark"
56+ android : layout_marginEnd =" 10dp"
57+ android : paddingRight =" 7dp"
58+ android : paddingLeft =" 7dp" />
59+
60+ <TextView
61+ android : id =" @+id/card_overview_credits"
62+ android : layout_width =" wrap_content"
63+ android : layout_height =" wrap_content"
64+ android : layout_below =" @id/card_overview_sunrise_sunset"
65+ android : layout_centerHorizontal =" true"
66+ android : textColor =" #fafafa"
67+ android : layout_marginStart =" 7dp"
68+ android : textSize =" 12dp"
69+ android : text =" Weather data by Open-Meteo.com" />
70+
71+
72+ <TextView
73+ android : id =" @+id/card_overview_produced_today_header"
74+ android : layout_width =" wrap_content"
75+ android : layout_height =" wrap_content"
76+ android : layout_below =" @id/card_overview_header_spacer"
77+ android : textAppearance =" ?android:attr/textAppearanceMedium"
78+ android : textColor =" @color/colorPrimaryDark"
79+ android : layout_marginTop =" 5dp"
80+ android : layout_marginStart =" 7dp"
81+ android : text =" @string/card_today_produced" />
82+
83+ <TextView
84+ android : id =" @+id/card_overview_produced_today"
85+ android : layout_width =" wrap_content"
86+ android : layout_height =" wrap_content"
87+ android : layout_below =" @id/card_overview_header_spacer"
88+ android : layout_toEndOf =" @id/card_overview_produced_today_header"
89+ android : textAppearance =" ?android:attr/textAppearanceMedium"
90+ android : textColor =" @color/colorPrimaryDark"
91+ android : layout_marginTop =" 5dp"
92+ android : layout_marginStart =" 7dp"
93+ android : text =" 1500 Wh" />
94+
95+ <TextView
96+ android : id =" @+id/card_overview_remaining_today_header"
97+ android : layout_width =" wrap_content"
98+ android : layout_height =" wrap_content"
99+ android : layout_below =" @id/card_overview_produced_today"
100+ android : textAppearance =" ?android:attr/textAppearanceMedium"
101+ android : textColor =" @color/colorPrimaryDark"
102+ android : layout_marginTop =" 5dp"
103+ android : layout_marginStart =" 7dp"
104+ android : text =" @string/card_today_remaining" />
105+
106+ <TextView
107+ android : id =" @+id/card_overview_remaining_today"
108+ android : layout_width =" wrap_content"
109+ android : layout_height =" wrap_content"
110+ android : layout_below =" @id/card_overview_produced_today"
111+ android : layout_toEndOf =" @id/card_overview_remaining_today_header"
112+ android : textAppearance =" ?android:attr/textAppearanceMedium"
113+ android : textColor =" @color/colorPrimaryDark"
114+ android : layout_marginTop =" 5dp"
115+ android : layout_marginStart =" 7dp"
116+ android : text =" 1500 Wh" />
117+
49118 </RelativeLayout >
50- <TextView
51- android : id =" @+id/card_overview_sunrise_sunset"
52- android : layout_width =" wrap_content"
53- android : layout_height =" wrap_content"
54- android : layout_gravity =" bottom|right"
55- android : textSize =" 15dp"
56- android : textColor =" @color/colorPrimaryDark"
57- android : background =" @drawable/rounded_corner"
58- android : layout_marginEnd =" 10dp"
59- android : layout_marginBottom =" 5dp"
60- android : paddingRight =" 7dp"
61- android : paddingLeft =" 7dp" />
62119
63120</androidx .cardview.widget.CardView>
0 commit comments