def __init__(self):
self.view = ui.View(background_color='lightyellow')
self.view.name = 'MiniPhotoView'
scrollview1 = ui.ScrollView()
scrollview1.name = 'scrollview1'
scrollview1.flex = 'WH'
scrollview1.content_size = (2000,2000)
self.view.add_subview(scrollview1)
self.view.present('full_screen')
self.sv1 = self.view['scrollview1']
width, height = self.sv1.content_size
self.sv1.add_subview(MyPictureView(width,height))
评论列表
文章目录