新闻popwindow
来源:互联网 发布:看漫画的软件 编辑:程序博客网 时间:2024/06/05 16:05
private void showPopupWindow(final int i, final String title) { //设置contentView View contentView = LayoutInflater.from(context).inflate(R.layout.mypop, null); pop = new PopupWindow(contentView, ActionBar.LayoutParams.WRAP_CONTENT, ActionBar.LayoutParams.WRAP_CONTENT, true); pop.setContentView(contentView); pop.setBackgroundDrawable(new ColorDrawable()); pop.setOutsideTouchable(true); pop.setFocusable(true); //设置各个控件的点击响应 TextView tv3 = (TextView)contentView.findViewById(R.id.delet); TextView tv4= (TextView) contentView.findViewById(R.id.sc); tv3.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { pop.dismiss(); listbean.remove(i); notifyDataSetChanged(); } }); //显示PopupWindow View rootview = LayoutInflater.from(context).inflate(R.layout.activity_main, null); pop.showAtLocation(rootview, Gravity.RIGHT,0, 0);}
阅读全文
0 0
- 新闻popwindow
- POPwindow
- popwindow
- popwindow
- PopWindow
- popwindow
- popwindow
- PopWindow
- popwindow
- popwindow
- popwindow
- popwindow 大全
- PopWindow用法
- Popwindow封装
- 30-popwindow
- 自定义 Popwindow
- 自定义popWindow
- android PopWindow
- DrawerLayout与listView结合(drawerlayout条目点击显示)
- 《C++ Concurrency in Action》笔记15 a thread-safe queue with condition variable
- 初探贝叶斯(Bayes)公式
- 宋克楠的sd
- 【双连通分量模板】
- 新闻popwindow
- Thrift学习总结
- iOS-百度语音合成的使用
- Encoding Data for HTM Systems翻译
- nginx 配置文件URL解释
- LeetCode #25
- 上拉加载 下来刷新
- Sping声明式事务和try catch捕获异常
- Java代码实现对properties文件有序的读写