Sha256: bdd8af73f11f21df30fc8d62e822944a6a5872f95f8e1fb021a87a841622c9af
Contents?: true
Size: 552 Bytes
Versions: 16
Compression:
Stored size: 552 Bytes
Contents
require 'ruboto/widget' ruboto_import_widgets :LinearLayout, :TextView class NoOnCreateActivity def onResume super set_title File.basename(__FILE__).chomp('_activity.rb').split('_'). map { |s| "#{s[0..0].upcase}#{s[1..-1]}" }.join(' ') self.content_view = linear_layout :orientation => :vertical, :gravity => android.view.Gravity::CENTER do text_view :id => 42, :text => title, :text_size => 48.0, :gravity => android.view.Gravity::CENTER end end end
Version data entries
16 entries across 16 versions & 1 rubygems