-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSaleOrRent.kv
More file actions
86 lines (76 loc) · 3.08 KB
/
Copy pathSaleOrRent.kv
File metadata and controls
86 lines (76 loc) · 3.08 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
<SaleOrRent>:
RelativeLayout:
FitImage:
source: 'financial.jpg'
MDBoxLayout:
orientation: 'vertical'
md_bg_color: 0,0,0,0.5
AnchorLayout:
anchor_x: 'left'
anchor_y: 'top'
size_hint_y: None
height: Window.size[1] / 2.5
MDIconButton:
icon: 'arrow-left'
on_press: app.play()
on_release: app.switch_products()
icon_size: '20dp'
theme_text_color: "Custom"
text_color: 'white'
MDBoxLayout:
# size_hint_y: None
# adaptive_height: True
spacing: "30dp"
orientation: 'vertical'
pos_hint: {'center_x': 0.5, 'center_y': 0.5}
padding: ["30dp", 0, "30dp", 0]
MDLabel:
text: "Are you selling or renting?"
color: "white"
bold: True
font_size: "25dp"
size_hint_y: None
adaptive_height: True
# md_bg_color: 1,0,0,1
halign: 'center'
MDBoxLayout:
spacing: "20dp"
# size_hint_y: None
# adaptive_height: True
# padding: [30, 0, 30, 0]
Sell:
ripple_behavior: True
pos_hint: {'center_y': 0.9}
size_hint_y: None
height: sell.height * 3
radius: ["15dp",]
on_press: app.play()
on_release: app.switch_sale()
MDLabel:
halign: 'center'
bold: True
text: "sell"
font_size: "16dp"
id: sell
size_hint_y: None
adaptive_height: True
pos_hint: {'center_y': 0.5}
Rent:
ripple_behavior: True
pos_hint: {'center_y': 0.9}
size_hint_y: None
height: rent.height * 3
radius: ["15dp",]
on_press: app.play()
on_release: app.switch_rent()
MDLabel:
halign: 'center'
bold: True
text: "rent"
font_size: "16dp"
id: rent
size_hint_y: None
adaptive_height: True
pos_hint: {'center_y': 0.5}
<Sell@MDCard+CommonElevationBehavior>
<Rent@MDCard+CommonElevationBehavior>