Skip to content

Commit

Permalink
Removed :class_name
Browse files Browse the repository at this point in the history
  • Loading branch information
rscottm committed Jul 14, 2014
1 parent 4683ed7 commit b6941a7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions assets/demo-scripts/demo-ruboto-core-sample.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ def on_create(bundle)

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
puts "Exception creating activity: #{$!}"
Expand All @@ -36,4 +38,4 @@ def butterfly
end
end

$irb.start_ruboto_activity :class_name => "SampleActivity"
$irb.start_ruboto_activity "SampleActivity"

0 comments on commit b6941a7

Please sign in to comment.