Sha256: e347a8a102d3fa63a7aa790fec1649b0eabea7b36497a3a2ef2108a0ef7288ee

Contents?: true

Size: 724 Bytes

Versions: 7

Compression:

Stored size: 724 Bytes

Contents

require 'ruboto/widget'

ruboto_import_widgets :LinearLayout, :TextView

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

    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

7 entries across 7 versions & 1 rubygems

Version Path
ruboto-1.1.2 test/activity/margins_activity.rb
ruboto-1.1.1 test/activity/margins_activity.rb
ruboto-1.1.0 test/activity/margins_activity.rb
ruboto-1.0.3 test/activity/margins_activity.rb
ruboto-1.0.2 test/activity/margins_activity.rb
ruboto-1.0.1 test/activity/margins_activity.rb
ruboto-1.0.0 test/activity/margins_activity.rb