Sha256: bdd8af73f11f21df30fc8d62e822944a6a5872f95f8e1fb021a87a841622c9af

Contents?: true

Size: 552 Bytes

Versions: 16

Compression:

Stored size: 552 Bytes

Contents

require 'ruboto/widget'

ruboto_import_widgets :LinearLayout, :TextView

class NoOnCreateActivity
  def onResume
    super
    set_title File.basename(__FILE__).chomp('_activity.rb').split('_').
                  map { |s| "#{s[0..0].upcase}#{s[1..-1]}" }.join(' ')

    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
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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