Sha256: b6f0635455228fdce06ef029805d52e25e5348d9ae4e773788b5a15f74e9f51b
Contents?: true
Size: 595 Bytes
Versions: 8
Compression:
Stored size: 595 Bytes
Contents
require 'ruboto/widget' ruboto_import_widgets :LinearLayout, :TextView class CallSuperActivity def onCreate(bundle) super setTitle 'Default' setTitle 'With Super', true setTitle 'Without Super', false self.content_view = linear_layout orientation: :vertical, gravity: :center do text_view id: 42, text: title, text_size: 48.0, gravity: :center end end def setTitle(title, call_super = true) super(title) if call_super end # FIXME(uwe): We should test that super is not called implicitly # def onResume # super # end end
Version data entries
8 entries across 8 versions & 1 rubygems