Class: AMQStylesheet

Inherits:
Object
  • Object
show all
Defined in:
lib/android_motion_query/stylesheet.rb

Instance Method Summary collapse

Instance Method Details

#apply_style_for(view, style_name, layout_params) ⇒ Object



67
68
69
70
71
72
73
# File 'lib/android_motion_query/stylesheet.rb', line 67

def apply_style_for(view, style_name, layout_params)
  style_view = AMQStylesheetElement.new(view, layout_params)
  self.send(style_name.to_s, style_view)
  view.get.setLayoutParams(style_view.params)
  view.get.tag = view
  view
end