-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice_info_list_item.kv
49 lines (45 loc) · 1.63 KB
/
device_info_list_item.kv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<DeviceInfoListItem>:
heading_label: heading_label_
content_label: content_label_
size_hint_y: None
height: heading_label_.height + content_label_.height
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
_no_ripple_effect: True
MDRelativeLayout:
# orientation: 'vertical'
size_hint_y: None
height: heading_label_.height + content_label_.height
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
radius: dp(10), dp(10), dp(10), dp(10)
md_bg_color: app.theme_cls.bg_normal
MDLabel:
id: heading_label_
size_hint_y: None
height: self.texture_size[1]
text_size: (self.width, None)
pos_hint: {'top': 1}
halign: 'left'
font_style: root.font_style
theme_text_color: root.theme_text_color
text_color: root.text_color
padding: dp(20), dp(15), dp(10), dp(10)
MDSeparator:
# MDSeparator is a BoxLayout
orientation: 'horizontal'
size_hint_x: 0.9
pos_hint: {'center_x': 0.5}
center_y: heading_label_.y
MDLabel:
id: content_label_
size_hint_y: None
text_size: (self.width, None)
height: self.texture_size[1]
pos_hint: {'bottom': 0}
halign: 'right'
shorten: False
font_style: root.secondary_font_style
theme_text_color: root.secondary_theme_text_color
text_color: root.secondary_text_color
padding: dp(10), dp(10), dp(20), dp(15)
MDSeparator:
height: dp(4)