-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPropertyCards.kv
More file actions
91 lines (64 loc) · 2.83 KB
/
Copy pathPropertyCards.kv
File metadata and controls
91 lines (64 loc) · 2.83 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<PropertySaleCards>:
padding: [0]
size_hint_y: None
ripple_behavior: True
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
height: '200dp'
id: main_card
on_press: app.play()
on_release: app.editscreen(root.image, root.local_image, root.tot, root.price, root.country, root.province, root.town, root.street, root.bedrooms, root.bathrooms, root.landspace, root.email, root.key, root.description, root.amenities, root.facebook, root.twitter, root.link, root.date, root.views)
radius: ["5dp", ]
md_bg_color: 1,1,1,1
# orientation: 'vertical'
padding: ['0dp', '0dp', '0dp', '10dp']
spacing: "20dp"
radius: ["20dp",]
id: ma
# line_color: 0.9,0.9,0.9,0.5
FitImage:
source: str(root.image)
mipmap: True
radius: ma.radius
keep_ratio: False
allow_stretch: True
size_hint_x: None
width: '160dp'
pos_hint: {'center_y': 0.5}
MDLabel:
text: f"[color=#000000][b][size=16dp]{root.tot}[/size][/b][/color] \n \n[b]{root.country}[/b] {root.province} {root.town} {root.street} \n \n{root.bedrooms} rooms {root.bathrooms} baths {root.landspace} \n \n[color=#000000][b]{root.price} {root.views} views[/b][/color]"
markup: True
pos_hint: {'center_y': 0.5}
color: 'gray'
font_size: '14dp'
# MDBoxLayout:
# orientation: 'vertical'
# spacing: '15dp'
# size_hint_y: None
# adaptive_height: True
# pos_hint: {'center_y': 0.5}
# MDLabel:
# text: root.tot
# # text: 'Modern House'
# bold: True
# font_size: '16dp'
# color: 'black'
# size_hint_y: None
# adaptive_height: True
# MDLabel:
# text: root.country + ' ' + root.province + ' ' + root.town + ' ' + root.street
# # text: 'Japan Kagoshima Kyushu Kyushu island'
# color: "gray"
# font_size: "14dp"
# size_hint_y: None
# adaptive_height: True
# markup: True
# shorten: True
# ellipsis_options: {'color':(0,0,0,0.5), 'underline':False}
# MDLabel:
# text: root.bedrooms + ' rooms' + ' - ' + root.bathrooms + ' baths' + ' - ' + root.landspace + " " + f"\n \n[color=#000000][b]{root.price} {root.views} views[/b][/color]"
# # text: "5 rooms - 3 baths - 542sq.ft \n \n[color=#000000][b]$120000[/b][/color]"
# font_size: '14dp'
# markup: True
# size_hint_y: None
# adaptive_height: True
# color: "gray"