Skip to content

Instantly share code, notes, and snippets.

@wanabe
Last active December 19, 2015 09:39
Show Gist options
  • Select an option

  • Save wanabe/5934487 to your computer and use it in GitHub Desktop.

Select an option

Save wanabe/5934487 to your computer and use it in GitHub Desktop.
module Jmi
class Andruboid < Main
include Android::Widget
def initialize
super
layout = LinearLayout.new(self)
self.content_view = layout
textview = TextView.new(self)
textview.text = "hello world "
layout << textview
button = Button.new(self)
button.text = "button"
button.on_click_listener = ClickListener.new do
textview.text = "button pushed"
end
layout << button
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment