Class: RMQImageViewStyler
- Inherits:
-
RMQViewStyler
show all
- Defined in:
- lib/project/ruby_motion_query/stylers/rmq_image_view_styler.rb
Instance Attribute Summary
#bg_color, #context, #corner_radius, #view
Instance Method Summary
collapse
#background_color=, #background_resource=, #cleanup, #convert_color, #convert_gravity, #create_drawable, #density, #dp2px, #finalize, #gravity=, #initialize, #layout=, #layout_align_parent_left=, #layout_align_parent_right=, #layout_center_horizontal=, #layout_center_in_parent=, #layout_center_vertical=, #layout_gravity=, #layout_height=, #layout_params, #layout_weight=, #layout_width=, #margin=, #margin_bottom=, #margin_left=, #margin_right=, #margin_top=, #padding=, #padding_bottom=, #padding_left=, #padding_right=, #padding_top=, #visibility=
Constructor Details
This class inherits a constructor from RMQViewStyler
Instance Method Details
#adjust_view_bounds=(adjust_view_bounds) ⇒ Object
9
10
11
|
# File 'lib/project/ruby_motion_query/stylers/rmq_image_view_styler.rb', line 9
def adjust_view_bounds=(adjust_view_bounds)
@view.adjustViewBounds = adjust_view_bounds
end
|
#image_resource=(resource_id) ⇒ Object
Also known as:
image=, src=
3
4
5
|
# File 'lib/project/ruby_motion_query/stylers/rmq_image_view_styler.rb', line 3
def image_resource=(resource_id)
@view.imageResource = resource_id
end
|
#max_height=(max_height) ⇒ Object
13
14
15
|
# File 'lib/project/ruby_motion_query/stylers/rmq_image_view_styler.rb', line 13
def max_height=(max_height)
@view.maxHeight = dp2px(max_height)
end
|
#max_width=(max_width) ⇒ Object
17
18
19
|
# File 'lib/project/ruby_motion_query/stylers/rmq_image_view_styler.rb', line 17
def max_width=(max_width)
@view.maxWidth = dp2px(max_width)
end
|
21
22
23
|
# File 'lib/project/ruby_motion_query/stylers/rmq_image_view_styler.rb', line 21
def tint=(t)
@view.setColorFilter(convert_color(t))
end
|