| java.lang.Object | ||
| ↳ | com.neomades.ui.View | |
| ↳ | com.neomades.ui.Layout | |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Abstract layout.
Note : You cannot override a Container in order to customize an UI element
|
[Expand]
Inherited XML Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.neomades.ui.View
| |||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.neomades.ui.Alignment
| |||||||||||
From interface
com.neomades.ui.StretchMode
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
addView(View view, int atIndex)
Inserts a view at a specified position in the layout.
| ||||||||||
| final void |
addView(View child)
Adds a child view to this container.
| ||||||||||
| int |
getViewsCount()
Returns the number of views inside this container.
| ||||||||||
| void |
removeAllViews()
Remove all views from this container.
| ||||||||||
| void |
removeIndex(int index)
Remove a view from this list at the specified
index. | ||||||||||
| void |
removeView(View child)
Remove a child view from this container.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.neomades.ui.View
| |||||||||||
From class
java.lang.Object
| |||||||||||
Inserts a view at a specified position in the layout. Note that views cannot
be added after the last view of the layout using this method. Use
addView(View) instead.
| view | the view to insert |
|---|---|
| atIndex | the position index |
| CrossThreadException | |
| IllegalArgumentException | if the index is negative or bigger than the number of views in the layout |
| CrossThreadException |
Adds a child view to this container.
| child | the child view to add |
|---|
| CrossThreadException | if the method is called from outside the UI-Thread |
|---|---|
| IllegalStateException | if the child view has already a parent, or if the child view is this layout |
| NullPointerException | if the child view is null |
Returns the number of views inside this container.
Remove all views from this container.
| CrossThreadException | if the method is called from outside the UI-Thread |
|---|
Remove a view from this list at the specified index.
| CrossThreadException |
|---|
Remove a child view from this container.
if the view is not a child of this Layout, an
IllegalStateException is thrown.
| child | the child view |
|---|
| CrossThreadException | if the method is called from outside the UI-Thread |
|---|---|
| IllegalStateException | if the child view is not a child of this layout |
| NullPointerException | if the child view is null |