Last active
December 19, 2015 09:39
-
-
Save wanabe/5934487 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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

