项目
在 GitHub 查看
shangmingchao/PopupList
关于
The edit menu in Android, like the UIMenuController in iOS
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文PopupList
It can show a edit menu when you press a View by a long-press gesture.
This utility class can bind a edit menu for ListView, GridView, or other View easily.
Welcome star, fork
Screenshots




How do I use PopupList?
Just need a .java file and a little code.
PopupList popupList = new PopupList(context);
popupList.bind(anchorView, popupMenuItemList, PopupListListener);
Sample
PopupList popupList = new PopupList(this);
popupList.bind(lv_main, popupMenuItemList, new PopupList.PopupListListener() {
@Override
public boolean showPopupList(View adapterView, View contextView, int contextPosition) {
return true;
}
@Override
public void onPopupListClick(View contextView, int contextPosition, int position) {
Toast.makeText(MainActivity.this, contextPosition + "," + position, Toast.LENGTH_SHORT).show();
}
});
Customization
You can get more information from the Wiki page.
探索相关项目
加载中…