Created
March 2, 2012 14:54
-
-
Save germanlinux/1958919 to your computer and use it in GitHub Desktop.
ruboto
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
require 'ruboto/activity' | |
require 'ruboto/widget' | |
require 'ruboto/util/toast' | |
ruboto_import_widgets :Button, :LinearLayout, :TextView | |
$activity.start_ruboto_activity "$sample_activity" do | |
setTitle 'ceci est l\'application de CASIMIR' | |
def on_create(bundle) | |
self.content_view = | |
linear_layout(:orientation => :vertical) do | |
@text_view = text_view :text => 'Appuyer sur le bouton pour connaitre les objectifs de CASIMIR', :id => 42 | |
button :text => 'Merci', :width => :wrap_content, :id => 43, | |
:on_click_listener => @handle_click | |
end | |
end | |
@handle_click = proc do |view| | |
@text_view.text = 'ok c est fait' | |
toast 'NODE.JS BACKBONE COFFEESCRIPT' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment