Reputation:
I have created this widget in the following window. I would like it to stay on the top always like a toolbar. Here's the kivy file code:
BoxLayout:
height: "40dp"
size_hint_y: None
TextInput:
id: search_box
size_hint_x: 25
multiline: False
pos_hint: {'top':1}
Can anybody help?
Thanks.
Upvotes: 1
Views: 1374
Reputation:
I found out the answer myself! I kind of made a mistake in this part:
pos_hint: {'top':1}
Here's the modified code:
BoxLayout:
height: "40dp"
size_hint_y: None
pos_hint: {'top':1}
TextInput:
id: search_box
size_hint_x: 25
multiline: False
Upvotes: 1