Class: Android::ViewGroup

Inherits:
Object show all
Defined in:
lib/android/sugarcube-ui/android.view_group.rb

Instance Method Summary collapse

Instance Method Details

#<<(view) ⇒ Object



4
5
6
# File 'lib/android/sugarcube-ui/android.view_group.rb', line 4

def <<(view)
  addView(view)
end

#[](index) ⇒ Object



8
9
10
11
12
# File 'lib/android/sugarcube-ui/android.view_group.rb', line 8

def [](index)
  if index.is_a?(Numeric)
    getChildAt(index)
  end
end