Sha256: 5cf16d9bb62754a55b1a024ead05077e594eb4d49757ba8fc6e5e9ad46d93522
Contents?: true
Size: 754 Bytes
Versions: 4
Compression:
Stored size: 754 Bytes
Contents
require 'ruboto/activity' require 'ruboto/widget' ruboto_import_widgets :LinearLayout, :TextView $activity.start_ruboto_activity do setTitle File.basename(__FILE__).chomp('_activity.rb').split('_').map { |s| "#{s[0..0].upcase}#{s[1..-1]}" }.join(' ') def on_create(bundle) self.content_view = linear_layout :orientation => LinearLayout::VERTICAL do @text_view_margins = text_view :text => 'What hath Matz wrought?', :id => 42, :margins => [100,0,0,0] @text_view_layout = text_view :text => 'What hath Matz wrought?', :id => 43, :layout => {:set_margins => [100,0,0,0]} @text_view_fieldset = text_view :text => 'What hath Matz wrought?', :id => 44, :layout => {:left_margin= => 100} end end end
Version data entries
4 entries across 4 versions & 1 rubygems