Sha256: b4d7d0fe700dde245ff9625a47f9a6164ed9b992dcbdcaf00ee2eff8b79da8f2

Contents?: true

Size: 481 Bytes

Versions: 15

Compression:

Stored size: 481 Bytes

Contents

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 => display_text, :id => 42, 
                    :layout => {:width => :match_parent},
                    :gravity => :center, :text_size => 48.0
        end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ruboto-1.6.1 test/activity/ruby_file_activity.rb
ruboto-1.6.0 test/activity/ruby_file_activity.rb
ruboto-1.5.0 test/activity/ruby_file_activity.rb
ruboto-1.4.1 test/activity/ruby_file_activity.rb
ruboto-1.4.0 test/activity/ruby_file_activity.rb
ruboto-1.3.1 test/activity/ruby_file_activity.rb
ruboto-1.3.0 test/activity/ruby_file_activity.rb
ruboto-1.2.0 test/activity/ruby_file_activity.rb
ruboto-1.1.2 test/activity/ruby_file_activity.rb
ruboto-1.1.1 test/activity/ruby_file_activity.rb
ruboto-1.1.0 test/activity/ruby_file_activity.rb
ruboto-1.0.3 test/activity/ruby_file_activity.rb
ruboto-1.0.2 test/activity/ruby_file_activity.rb
ruboto-1.0.1 test/activity/ruby_file_activity.rb
ruboto-1.0.0 test/activity/ruby_file_activity.rb