Class: Android::App::Activity

Inherits:
Object
  • Object
show all
Defined in:
lib/project/ext/activity.rb

Direct Known Subclasses

PMActivity

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.rmq_style_sheet_classObject



55
56
57
# File 'lib/project/ext/activity.rb', line 55

def rmq_style_sheet_class
  @rmq_style_sheet_class
end

.stylesheet(style_sheet_class) ⇒ Object



51
52
53
# File 'lib/project/ext/activity.rb', line 51

def stylesheet(style_sheet_class)
  @rmq_style_sheet_class = style_sheet_class
end

Instance Method Details

#append(view_or_class, style = nil, opts = {}, dummy = nil) ⇒ Object



41
42
43
# File 'lib/project/ext/activity.rb', line 41

def append(view_or_class, style=nil, opts={}, dummy=nil)
  self.rmq.append(view_or_class, style, opts)
end

#append!(view_or_class, style = nil, opts = {}) ⇒ Object



45
46
47
# File 'lib/project/ext/activity.rb', line 45

def append!(view_or_class, style=nil, opts={})
  self.rmq.append(view_or_class, style, opts).get
end

#color(*params) ⇒ Object



29
30
31
# File 'lib/project/ext/activity.rb', line 29

def color(*params)
  RMQ.color(*params)
end

#fontObject



33
34
35
# File 'lib/project/ext/activity.rb', line 33

def font
  rmq.font
end

#imageObject



37
38
39
# File 'lib/project/ext/activity.rb', line 37

def image
  rmq.image
end

#rmq(*working_selectors) ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'lib/project/ext/activity.rb', line 11

def rmq(*working_selectors)
  crmq = (rmq_data.cached_rmq ||= RMQ.create_with_selectors([], self))

  if working_selectors.length == 0
    crmq
  else
    RMQ.create_with_selectors(working_selectors, self, crmq)
  end
end

#rmq_dataObject



7
8
9
# File 'lib/project/ext/activity.rb', line 7

def rmq_data
  @_rmq_data ||= RMQActivityData.new
end

#root_viewObject



3
4
5
# File 'lib/project/ext/activity.rb', line 3

def root_view
  @_root_view ||= getWindow.getDecorView.findViewById(Android::R::Id::Content)
end

#stylesheetObject



21
22
23
# File 'lib/project/ext/activity.rb', line 21

def stylesheet
  self.rmq.stylesheet
end

#stylesheet=(value) ⇒ Object



25
26
27
# File 'lib/project/ext/activity.rb', line 25

def stylesheet=(value)
  self.rmq.stylesheet = value
end