Sha256: 5921d567e53540f21baa3bcbf56e1ae6afb500f3e2334e8b735899bc9d03d6de

Contents?: true

Size: 427 Bytes

Versions: 8

Compression:

Stored size: 427 Bytes

Contents

require 'ruboto/widget'

ruboto_import_widgets :LinearLayout, :TextView

class PaddingActivity
  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 id: 41, padding: [10, 20, 30, 40] do
      text_view text: 'Text with padding', id: 42, padding: [1, 2, 4, 8]
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruboto-1.6.1 test/activity/padding_activity.rb
ruboto-1.6.0 test/activity/padding_activity.rb
ruboto-1.5.0 test/activity/padding_activity.rb
ruboto-1.4.1 test/activity/padding_activity.rb
ruboto-1.4.0 test/activity/padding_activity.rb
ruboto-1.3.1 test/activity/padding_activity.rb
ruboto-1.3.0 test/activity/padding_activity.rb
ruboto-1.2.0 test/activity/padding_activity.rb