Method: RMQTextViewStyler#text_style=

Defined in:
lib/project/ruby_motion_query/stylers/rmq_text_view_styler.rb

#text_style=(text_style) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/project/ruby_motion_query/stylers/rmq_text_view_styler.rb', line 11

def text_style=(text_style)
  @text_style =
    case text_style.to_s.downcase
    when "bold"
      Android::Graphics::Typeface::BOLD
    when "italic"
      Android::Graphics::Typeface::ITALIC
    when "bold italic"
      Android::Graphics::Typeface::BOLD_ITALIC
    when "normal"
      Android::Graphics::Typeface::NORMAL
    end
  @lazy_typeface = true
end