Sha256: 1d7b5835c46885b70c36c6a05524ad12181021e8bed014495348e2acee29cf42

Contents?: true

Size: 588 Bytes

Versions: 8

Compression:

Stored size: 588 Bytes

Contents

require 'ruboto'

ruboto_import_widgets :ImageButton, :LinearLayout, :TextView

$activity.handle_create do |bundle|
  setTitle File.basename(__FILE__).chomp('_activity.rb').split('_').map{|s| "#{s[0..0].upcase}#{s[1..-1]}" }.join(' ')

  setup_content do
    linear_layout :orientation => LinearLayout::VERTICAL do
      @text_view = text_view :text => 'What hath Matz wrought?', :id => 42
    end
  end

  handle_create_options_menu do |menu|
    add_menu('Test') do
      @text_view.setText 'What hath Matz wrought!'
      toast 'Flipped a bit via butterfly'
    end
    true
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
ruboto-0.7.0 test/handle_activity/option_menu_activity.rb
ruboto-0.5.4 test/activity/option_menu_activity.rb
ruboto-0.5.3 test/activity/option_menu_activity.rb
ruboto-0.5.2 test/activity/option_menu_activity.rb
ruboto-core-0.5.1 test/activity/option_menu_activity.rb
ruboto-core-0.4.1.rc.4 test/activity/option_menu_activity.rb
ruboto-core-0.4.0 test/activity/option_menu_activity.rb
ruboto-core-0.3.3 test/activity/option_menu_activity.rb