Hi all,
Till now I used a FileChooserListView inside a container.
As kivy 1.9 allows to change the layout I decided to let my users switch between icon and list layout.
Here is my kv code:
kv:
#:kivy 1.9.0
RootWidget:
# import container
container: container
# fill container
BoxLayout:
id: container
orientation: 'vertical'
padding: 0
spacing: 6
BoxLayout:
orientation: 'horizontal'
size_hint: 1,0.07
# choose File
MyLabel:
text: 'title'
size_hint: 0.85,1
Button:
size_hint: 0.075,1
text: 'listview'
on_release: chooser.view_mode='list'
Button:
size_hint: 0.075,1
text: 'iconview'
on_release: chooser.view_mode='icon'
FileChooser:
#FileChooserListView:
id: chooser
FileChooserIconLayout
FileChooserListLayout
Till now my layout was as I expected, the filechooser was inside the container.
Using the new kv-file (above) it seems to me, that the Filechooser uses some kind of absolute coordinates...
Is it a bug? Or did I missunderstood how to use the filechooser in kivy 1.9? How should I edit my .kv file to have the same result as before?
Thx