Skip to content

Instantly share code, notes, and snippets.

@germanlinux
Created March 2, 2012 14:54
Show Gist options
  • Save germanlinux/1958919 to your computer and use it in GitHub Desktop.
Save germanlinux/1958919 to your computer and use it in GitHub Desktop.
ruboto
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