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