assets/samples/sample_activity.rb in ruboto-0.16.0 vs assets/samples/sample_activity.rb in ruboto-1.0.0
- old
+ new
@@ -10,12 +10,15 @@
super
set_title 'Domo arigato, Mr Ruboto!'
self.content_view =
linear_layout :orientation => :vertical do
- @text_view = text_view :text => 'What hath Matz wrought?', :id => 42, :width => :match_parent,
+ @text_view = text_view :text => 'What hath Matz wrought?', :id => 42,
+ :layout => {:width => :match_parent},
:gravity => :center, :text_size => 48.0
- button :text => 'M-x butterfly', :width => :match_parent, :id => 43, :on_click_listener => proc { butterfly }
+ button :text => 'M-x butterfly',
+ :layout => {:width => :match_parent},
+ :id => 43, :on_click_listener => proc { butterfly }
end
rescue Exception
puts "Exception creating activity: #{$!}"
puts $!.backtrace.join("\n")
end