shangmingchao / popuplist Goto Github PK
View Code? Open in Web Editor NEWThe edit menu in Android, like the UIMenuController in iOS
The edit menu in Android, like the UIMenuController in iOS
List popupMenuItemList = new ArrayList<>();
popupMenuItemList.add("编辑");
popupMenuItemList.add("删除");
PopupList popupList=new PopupList(context);
////设置点击出泡泡框
popupList.bind(view, 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) {
Log.v("tag","哈哈");
}
});
我用长按监听回调到activity中使用这个控件,他会重写longclick事件...这就很尴尬了.
另外,如果我想时刻变动popublist里面的string内容,bind了以后就改不了了啊...longtouch直接走bin里面的回调了
大神,你在初始化的时候只考虑了是listview和gridview情况,而我的项目是点击的是一个普通的view,为了实现同样的效果,在你的PopupList.java中initPopupList方法中将AbsListView→View 而对应的showPopupWindow方法中不要(position 点击的列表项在列表数据集中的位置)这个参数,就实现了只要是view的控件都能事项popup效果。
我想让气泡显示位置显示在item正上方或下方,在源码中如何改呢请问
@shangmingchao
你好,请问可以支持翻页吗?
当个数多的时候会显示不全,这个如何解决呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.