public class XUIExpandableListPopup<T extends XUIExpandableListPopup> extends XUIPopup
XUIBasePopup.RootView| Modifier and Type | Field and Description |
|---|---|
protected android.widget.ExpandableListAdapter |
mAdapter |
protected android.widget.ExpandableListView |
mExpandableListView |
ANIM_AUTO, ANIM_GROW_FROM_CENTER, ANIM_GROW_FROM_LEFT, ANIM_GROW_FROM_RIGHT, DIRECTION_BOTTOM, DIRECTION_NONE, DIRECTION_TOP, mAnimStyle, mArrowCenter, mArrowDown, mArrowUp, mDirection, mX, mYmBackground, mRootView, mScreenSize, mWindowHeight, mWindowManager, mWindowWidth| Constructor and Description |
|---|
XUIExpandableListPopup(android.content.Context context) |
XUIExpandableListPopup(android.content.Context context,
android.widget.ExpandableListAdapter adapter) |
XUIExpandableListPopup(android.content.Context context,
int direction,
android.widget.ExpandableListAdapter adapter)
构造方法.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearExpandStatus()
清空展开状态
|
void |
collapseAllGroup()
收起所有组
|
T |
create(int width)
创建弹窗
|
protected T |
create(int width,
int maxHeight)
创建弹窗
|
T |
create(int width,
int maxHeight,
android.widget.ExpandableListView.OnChildClickListener onChildClickListener)
创建弹窗
|
void |
expandAllGroup()
展开所有组
|
boolean |
expandOnlyOne(int expandedPosition)
只展开一个
|
android.widget.ExpandableListAdapter |
getAdapter() |
android.widget.ExpandableListView |
getExpandableListView() |
T |
setChildDivider(android.graphics.drawable.Drawable divider)
设置Child分割线的资源
|
T |
setDividerHeight(int dividerHeight)
设置分割线的高度
|
T |
setEnableOnlyExpandOne(boolean enable)
设置是否只展开一个
|
T |
setGroupDivider(android.graphics.drawable.Drawable divider)
设置Group分割线的资源
|
T |
setHasDivider(boolean hasDivider)
设置是否有分割线
|
T |
setOnChildClickListener(android.widget.ExpandableListView.OnChildClickListener onChildClickListener) |
T |
setOnGroupClickListener(android.widget.ExpandableListView.OnGroupClickListener onGroupClickListener) |
generateLayoutParam, getPopupWidth, onShow, setAnimStyle, setContentView, setPopupLeftRightMinMargin, setPopupTopBottomMinMargin, setPositionOffsetX, setPositionOffsetYWhenBottom, setPositionOffsetYWhenTop, setPreferredDirection, showDown, showUpdismiss, getContext, getPopupWindow, isShowing, onConfigurationChanged, onDismiss, onPreShow, setBackgroundDrawable, setContentView, setNeedCacheSize, setOnDismissListener, show, showprotected android.widget.ExpandableListView mExpandableListView
protected android.widget.ExpandableListAdapter mAdapter
public XUIExpandableListPopup(android.content.Context context)
public XUIExpandableListPopup(android.content.Context context,
int direction,
android.widget.ExpandableListAdapter adapter)
context - Contextdirection - public XUIExpandableListPopup(android.content.Context context,
android.widget.ExpandableListAdapter adapter)
public T create(int width, int maxHeight, android.widget.ExpandableListView.OnChildClickListener onChildClickListener)
width - 弹窗的宽度maxHeight - 弹窗最大的高度onChildClickListener - 子列表点击的监听public T create(int width)
width - 弹窗的宽度protected T create(int width, int maxHeight)
width - 弹窗的宽度maxHeight - 弹窗最大的高度public T setHasDivider(boolean hasDivider)
public T setGroupDivider(android.graphics.drawable.Drawable divider)
divider - public T setChildDivider(android.graphics.drawable.Drawable divider)
divider - public T setDividerHeight(int dividerHeight)
dividerHeight - public T setOnChildClickListener(android.widget.ExpandableListView.OnChildClickListener onChildClickListener)
public T setOnGroupClickListener(android.widget.ExpandableListView.OnGroupClickListener onGroupClickListener)
public T setEnableOnlyExpandOne(boolean enable)
enable - public boolean expandOnlyOne(int expandedPosition)
expandedPosition - public void expandAllGroup()
public void collapseAllGroup()
public void clearExpandStatus()
public android.widget.ExpandableListAdapter getAdapter()
public android.widget.ExpandableListView getExpandableListView()