public abstract class Host
extends ViewGroup
Constructor and Description |
---|
Host(Context context,
AttributeSet attrs) |
Modifier and Type | Method and Description |
---|---|
abstract MountItem |
getMountItemAt(int index) |
abstract int |
getMountItemCount() |
abstract void |
mount(int index,
MountItem mountItem)
Mounts the given
MountItem with unique index. |
abstract void |
moveItem(MountItem item,
int oldIndex,
int newIndex)
Moves the MountItem associated to oldIndex in the newIndex position.
|
abstract void |
unmount(int index,
MountItem mountItem)
Unmounts the given
MountItem with unique index. |
abstract void |
unmount(MountItem mountItem)
Unmounts the given
MountItem |
public abstract void mount(int index, MountItem mountItem)
MountItem
with unique index.index
- index of the MountItem
. Guaranteed to be the same index as is passed for
the corresponding unmount(index, mountItem)
call.mountItem
- item to be mounted into the host.public abstract void unmount(MountItem mountItem)
MountItem
mountItem
- item to be unmounted from the host.public abstract void unmount(int index, MountItem mountItem)
MountItem
with unique index.index
- index of the MountItem
. Guaranteed to be the same index as was passed for
the corresponding mount(index, mountItem)
call.mountItem
- item to be unmounted from the host.public abstract int getMountItemCount()
MountItem
s that are currently mounted in the host.public abstract MountItem getMountItemAt(int index)
MountItem
that was mounted with the given index.public abstract void moveItem(MountItem item, int oldIndex, int newIndex)
unmount(int, MountItem)
or moveItem(MountItem, int,
int)
.item
- The item that has been moved.oldIndex
- The current index of the MountItem.newIndex
- The new index of the MountItem.