def init_layout(self):
        """ Initialize the underlying widget.

        """
        super(AndroidListView, self).init_layout()
        d = self.declaration
        w = self.widget

        # Prepare adapter
        adapter = self.adapter = BridgedRecyclerAdapter(w)

        # I'm sure this will make someone upset haha
        adapter.setRecyleListener(adapter.getId())
        adapter.onRecycleView.connect(self.on_recycle_view)
        #adapter.onVisibleCountChanged.connect(self.on_visible_count_changed)
        #adapter.onScrollStateChanged.connect(self.on_scroll_state_changed)
        self.set_items(d.items)
        w.setAdapter(adapter)
        #self.set_selected(d.selected)
        self.refresh_views()
def init_layout ( self ) : super ( AndroidListView , self ) . init_layout ( ) d = self . declaration w = self . widget adapter = self . adapter = BridgedRecyclerAdapter ( w ) adapter . setRecyleListener ( adapter . getId ( ) ) adapter . onRecycleView . connect ( self . on_recycle_view ) self . set_items ( d . items ) w . setAdapter ( adapter ) self . refresh_views ( )
Initialize the underlying widget.