|
WIMM Labs |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.view.View
android.view.ViewGroup
com.wimm.framework.view.ViewTray
com.wimm.framework.view.AdapterViewTray
public class AdapterViewTray
The AdapterViewTray class extends the ViewTray
and holds child views retrieved from an Adapter
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.wimm.framework.view.ViewTray |
---|
ViewTray.OnIndexChangeListener, ViewTray.Scrollable |
Nested classes/interfaces inherited from class android.view.ViewGroup |
---|
ViewGroup.LayoutParams, ViewGroup.MarginLayoutParams, ViewGroup.OnHierarchyChangeListener |
Nested classes/interfaces inherited from class android.view.View |
---|
View.BaseSavedState, View.MeasureSpec, View.OnClickListener, View.OnCreateContextMenuListener, View.OnFocusChangeListener, View.OnKeyListener, View.OnLongClickListener, View.OnTouchListener |
Field Summary |
---|
Fields inherited from class android.view.ViewGroup |
---|
CLIP_TO_PADDING_MASK, FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHE |
Constructor Summary | |
---|---|
AdapterViewTray(Context context)
Instantiates a new adapter view tray. |
|
AdapterViewTray(Context context,
AttributeSet attrs)
Instantiates a new adapter view tray. |
|
AdapterViewTray(Context context,
AttributeSet attrs,
int defStyle)
Instantiates a new adapter view tray. |
Method Summary | |
---|---|
View |
getActiveView()
Gets the active view. |
Adapter |
getAdapter()
Gets the adapter. |
int |
getIndex()
Gets the index. |
int |
getViewCount()
Gets the view count. |
void |
setAdapter(Adapter adapter)
Sets the adapter. |
void |
setCanLoop(boolean canLoop)
Sets the can loop. |
void |
setViewCount(int viewCount)
Sets the maximum number of child views to be inflated in memory at one time. |
Methods inherited from class com.wimm.framework.view.ViewTray |
---|
getInternalViewScrollOffset, getItemCount, onDrag, onDragEnd, onInterruptingOneFingerTap, onLayout, onLongTap, onMotionBegin, onMotionCancel, onMotionEnd, onOneFingerTap, onTwoFingerTap, setCanScrollInternalView, setIndex, setIndex, setOnIndexChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface android.view.ViewParent |
---|
createContextMenu, getParent, isLayoutRequested, requestLayout |
Constructor Detail |
---|
public AdapterViewTray(Context context)
context
- The Context
.public AdapterViewTray(Context context, AttributeSet attrs)
context
- The Context
.attrs
- The AttributeSet
.public AdapterViewTray(Context context, AttributeSet attrs, int defStyle)
context
- The Context
.attrs
- The AttributeSet
.defStyle
- The Style Resource.Method Detail |
---|
public Adapter getAdapter()
Adapter
.public void setAdapter(Adapter adapter)
adapter
- The Adapter
.public void setCanLoop(boolean canLoop)
Note: This should only be called once.
canLoop
- When set loop is available for associated views.public int getViewCount()
public void setViewCount(int viewCount)
viewCount
- The number of child views associated with the view.public int getIndex()
getIndex
in class ViewTray
public View getActiveView()
getActiveView
in class ViewTray
View
.
|
WIMM Labs |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |