Sha256: 79ee15098908a5c13a3726d7f8618a1a13a613c8c3545217e41a6c3c6d1c3210
Contents?: true
Size: 817 Bytes
Versions: 8
Compression:
Stored size: 817 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: :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_layout = text_view text: 'What hath Matz wrought?', id: 44, layout: {margins: [100, 0, 0, 0]} @text_view_fieldset = text_view text: 'What hath Matz wrought?', id: 45, layout: {left_margin: 100} end end end
Version data entries
8 entries across 8 versions & 1 rubygems