class RMQLinearLayoutStyler
Public Instance Methods
finalize()
click to toggle source
# File lib/project/ruby_motion_query/stylers/rmq_linear_layout_styler.rb, line 15 def finalize @view.setLayoutParams(layout_params) end
gravity=(gravity)
click to toggle source
# File lib/project/ruby_motion_query/stylers/rmq_linear_layout_styler.rb, line 11 def gravity=(gravity) @view.gravity = convert_gravity(gravity) end
orientation=(orientation)
click to toggle source
# File lib/project/ruby_motion_query/stylers/rmq_linear_layout_styler.rb, line 7 def orientation=(orientation) @view.setOrientation convert_orientation(orientation) end
weight_sum=(weight_sum)
click to toggle source
# File lib/project/ruby_motion_query/stylers/rmq_linear_layout_styler.rb, line 3 def weight_sum=(weight_sum) @view.setWeightSum weight_sum end
Private Instance Methods
convert_orientation(orientation)
click to toggle source
# File lib/project/ruby_motion_query/stylers/rmq_linear_layout_styler.rb, line 21 def convert_orientation(orientation) case orientation when :horizontal Potion::LinearLayout::HORIZONTAL when :vertical Potion::LinearLayout::VERTICAL else orientation end end