test/activity/ruby_file_activity.rb in ruboto-0.13.0 vs test/activity/ruby_file_activity.rb in ruboto-0.14.0
- old
+ new
@@ -1,12 +1,13 @@
class RubyFileActivity
def onCreate(bundle)
super
set_title 'Ruby file Activity'
+ display_text = intent.get_extra('extra_string') || 'This is a Ruby file activity.'
self.content_view =
linear_layout :orientation => :vertical, :gravity => :center_horizontal do
- text_view :text => 'This is a Ruby file activity.', :id => 42, :width => :match_parent,
+ text_view :text => display_text, :id => 42, :width => :match_parent,
:gravity => :center, :text_size => 48.0
end
end
end