public class XUIListPopup<T extends XUIListPopup> extends XUIPopup
XUIBasePopup.RootView| Modifier and Type | Field and Description |
|---|---|
protected android.widget.ListAdapter |
mAdapter |
protected android.widget.ListView |
mListView |
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 |
|---|
XUIListPopup(android.content.Context context,
int direction,
android.widget.ListAdapter adapter)
构造方法.
|
XUIListPopup(android.content.Context context,
android.widget.ListAdapter adapter) |
| Modifier and Type | Method and Description |
|---|---|
protected T |
create(int width)
创建弹窗
|
protected T |
create(int width,
int maxHeight)
创建弹窗
|
T |
create(int width,
int maxHeight,
android.widget.AdapterView.OnItemClickListener onItemClickListener)
创建弹窗
|
android.widget.ListAdapter |
getAdapter() |
android.widget.ListView |
getListView() |
T |
setDivider(android.graphics.drawable.Drawable divider)
设置分割线的资源
|
T |
setDividerHeight(int dividerHeight)
设置分割线的高度
|
T |
setHasDivider(boolean hasDivider)
设置是否有分割线
|
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.ListView mListView
protected android.widget.ListAdapter mAdapter
public XUIListPopup(android.content.Context context,
int direction,
android.widget.ListAdapter adapter)
context - Contextdirection - public XUIListPopup(android.content.Context context,
android.widget.ListAdapter adapter)
public T create(int width, int maxHeight, android.widget.AdapterView.OnItemClickListener onItemClickListener)
width - 弹窗的宽度maxHeight - 弹窗最大的高度onItemClickListener - 列表点击的监听protected T create(int width, int maxHeight)
width - 弹窗的宽度maxHeight - 弹窗最大的高度protected T create(int width)
width - 弹窗的宽度public T setHasDivider(boolean hasDivider)
hasDivider - public T setDivider(android.graphics.drawable.Drawable divider)
divider - public T setDividerHeight(int dividerHeight)
dividerHeight - public android.widget.ListAdapter getAdapter()
public android.widget.ListView getListView()