def create_widget(self):
        """ Create the underlying label widget.

        """
        d = self.declaration
        mode = 1 if d.mode == 'dropdown' else 0
        self.widget = Spinner(self.get_context(), mode)

        # Create the adapter simple_spinner_item = 0x01090008
        self.adapter = ArrayAdapter(self.get_context(),
                                    '@layout/simple_spinner_dropdown_item')
def create_widget ( self ) : d = self . declaration mode = 1 if d . mode == 'dropdown' else 0 self . widget = Spinner ( self . get_context ( ) , mode ) self . adapter = ArrayAdapter ( self . get_context ( ) , '@layout/simple_spinner_dropdown_item' )
Create the underlying label widget.