Sha256: 1a4df7f7f443a2c13f31aeec9ce06b8e1a475539463c988c2b38468d429b2e88

Contents?: true

Size: 653 Bytes

Versions: 15

Compression:

Stored size: 653 Bytes

Contents

require 'ruboto/widget'

ruboto_import_widgets :LinearLayout, :TextView

class DirAndFileActivity
  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 :id => 42, :text => __FILE__
          text_view :id => 43, :text => File.dirname(__FILE__)
          text_view :id => 44, :text => Dir["#{File.dirname(__FILE__)}/*"][0].to_s
          text_view :id => 45, :text => Dir.foreach(File.dirname(__FILE__)).to_a[2].to_s
        end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ruboto-1.0.2 test/activity/dir_and_file_activity.rb
ruboto-1.0.1 test/activity/dir_and_file_activity.rb
ruboto-1.0.0 test/activity/dir_and_file_activity.rb
ruboto-0.16.0 test/activity/dir_and_file_activity.rb
ruboto-0.15.0 test/activity/dir_and_file_activity.rb
ruboto-0.14.0 test/activity/dir_and_file_activity.rb
ruboto-0.13.0 test/activity/dir_and_file_activity.rb
ruboto-0.12.0 test/activity/dir_and_file_activity.rb
ruboto-0.13.0.rc.0 test/activity/dir_and_file_activity.rb
ruboto-0.12.0.rc.0 test/activity/dir_and_file_activity.rb
ruboto-0.11.0 test/activity/dir_and_file_activity.rb
ruboto-0.11.0.rc.1 test/activity/dir_and_file_activity.rb
ruboto-0.11.0.rc.0 test/activity/dir_and_file_activity.rb
ruboto-0.10.2 test/activity/dir_and_file_activity.rb
ruboto-0.10.2.rc.0 test/activity/dir_and_file_activity.rb