1
這是我的應用程序滾動型在Kivys網格佈局
<myAppLayout>
canvas.before:
Color:
rgba:1, 1, 1,1
Rectangle:
pos: self.pos
size: self.size
ScrollView:
size: self.size
size_hint: (None, None)
GridLayout:
cols:1
TextInput:
pos_hint:{"center_x":0.5,"y":0.1}
color:0,0.5,1,1
background_color:0,0.5,1,1
size:20,20
Label:
color:1,0,1,1
text:"hello"
text_size:self.size
Label:
color:1,0,1,1
text:"hello"
text_size:self.size
Label:
color:1,0,1,1
text:"hello"
text_size:self.size
Label:
color:1,0,1,1
text:"hello"
text_size:self.size
Label:
color:1,0,1,1
text:"hello"
text_size:self.size
Label:
color:1,0,1,1
text:"hello"
text_size:self.size
Label:
color:1,0,1,1
text:"hello"
text_size:self.size
Label:
color:1,0,1,1
text:"hello"
text_size:self.size
Label:
color:1,0,1,1
text:"hello"
text_size:self.size
Label:
color:1,0,1,1
text:"hello"
text_size:self.size
Label:
color:1,0,1,1
text:"hello"
text_size:self.size
Label:
color:1,0,1,1
text:"hello"
text_size:self.size
Python代碼看起來像這樣
class myAppLayout(GridLayout):
pass
的KV文件的問題是我的輸出看起來就像這樣(左下角)的一些事情,而我想根據設備的大小逐行逐行排列
我沒有新的,我是新來kivy,並從網站上嘗試的例子,並感謝您的解釋 – Eka