Sha256: 536253d9ac57935e83ea5f390f8ff5ee90adc6b020547f93b00ef386a1f2a75a
Contents?: true
Size: 476 Bytes
Versions: 16
Compression:
Stored size: 476 Bytes
Contents
class CompoundButtonWrapper < ViewWrapper def on(event,&block) listener_ref = event.to_s.camelize case event.to_sym when :checked_change self.native.send(:"setOn#{listener_ref}Listener",_listener("On#{listener_ref}Listener", 'android.widget.CompoundButton', &block)) else super(event, &block) end end def checked? self.native.isChecked end def checked=(value) self.native.setChecked(value) end end
Version data entries
16 entries across 16 versions & 1 rubygems