test/activity/spinner_activity.rb in ruboto-1.1.2 vs test/activity/spinner_activity.rb in ruboto-1.2.0
- old
+ new
@@ -15,11 +15,11 @@
self.content_view =
linear_layout :orientation => :vertical, :gravity => :center_horizontal do
spinner :layout => {:width => :match_parent}, :id => 42
plain_spinner = spinner :layout => {:width => :match_parent}, :id => 43,
:on_item_selected_listener => click_handler
- plain_spinner.adapter = android.widget.ArrayAdapter.new(self, R::layout::simple_spinner_item)
+ plain_spinner.adapter = android.widget.ArrayAdapter.new(self, android.R::layout::simple_spinner_item)
# FIXME(uwe): Simplify when we stop supporting Android < 4.0.3
if android.os.Build::VERSION::SDK_INT < 11
['Plain Spinner', 'Plain Item'].each do |i|
plain_spinner.adapter.add(i)
@@ -29,22 +29,22 @@
end
# EMXIF
spinner :layout => {:width => :match_parent}, :id => 44,
:on_item_selected_listener => click_handler,
- :adapter => android.widget.ArrayAdapter.new(self, R::layout::simple_spinner_item, ['Adapter Spinner', 'Adapter Item'])
+ :adapter => android.widget.ArrayAdapter.new(self, android.R::layout::simple_spinner_item, ['Adapter Spinner', 'Adapter Item'])
spinner :layout => {:width => :match_parent}, :id => 45 ,
:on_item_selected_listener => click_handler,
:list => ['List Spinner', 'List Item']
spinner :layout => {:width => :match_parent}, :id => 46 ,
:on_item_selected_listener => click_handler,
:list => ['List Spinner', 'List Item'],
- :item_layout => R::layout::simple_spinner_dropdown_item
+ :item_layout => android.R::layout::simple_spinner_dropdown_item
spinner :layout => {:width => :match_parent}, :id => 47 ,
:on_item_selected_listener => click_handler,
:list => ['List Spinner', 'List Item'],
- :item_layout => R::layout::simple_spinner_dropdown_item,
- :dropdown_layout => R::layout::simple_spinner_item
+ :item_layout => android.R::layout::simple_spinner_dropdown_item,
+ :dropdown_layout => android.R::layout::simple_spinner_item
@text_view = text_view :text => 'Spinning?', :id => 69,
:layout => {:width => :match_parent},
:gravity => :center, :text_size => 48.0
end
end