Sha256: 32f8917e32c15bf34103da60ebfd61a708439f5b00512ef0e0f4e443ee89b1df

Contents?: true

Size: 658 Bytes

Versions: 12

Compression:

Stored size: 658 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__)}/*"].sort[0].to_s
          text_view :id => 45, :text => Dir.foreach(File.dirname(__FILE__)).to_a[2].to_s
        end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ruboto-1.6.1 test/activity/dir_and_file_activity.rb
ruboto-1.6.0 test/activity/dir_and_file_activity.rb
ruboto-1.5.0 test/activity/dir_and_file_activity.rb
ruboto-1.4.1 test/activity/dir_and_file_activity.rb
ruboto-1.4.0 test/activity/dir_and_file_activity.rb
ruboto-1.3.1 test/activity/dir_and_file_activity.rb
ruboto-1.3.0 test/activity/dir_and_file_activity.rb
ruboto-1.2.0 test/activity/dir_and_file_activity.rb
ruboto-1.1.2 test/activity/dir_and_file_activity.rb
ruboto-1.1.1 test/activity/dir_and_file_activity.rb
ruboto-1.1.0 test/activity/dir_and_file_activity.rb
ruboto-1.0.3 test/activity/dir_and_file_activity.rb