test/activity/call_super_activity.rb in ruboto-1.1.2 vs test/activity/call_super_activity.rb in ruboto-1.2.0
- old
+ new
@@ -8,11 +8,11 @@
setTitle 'Default'
setTitle 'With Super', true
setTitle 'Without Super', false
self.content_view =
- linear_layout :orientation => :vertical, :gravity => android.view.Gravity::CENTER do
- text_view :id => 42, :text => title, :text_size => 48.0, :gravity => android.view.Gravity::CENTER
+ 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