我写的是
noti.contentview=new remoteviews(...)
noti.setonclickpendingintent(....)
这个跟appwidget类似,应该没问题的啊。
noti的时候按钮可以显示出来
但点不到,点击下去是整个notification。于是我想到listview item添加按钮后也是这种情况
于是我把notification的layout的按钮外面的layout设置focusable=false clickabled=false
但还是不行啊这个到底要怎么办才行呢
noti.contentview=new remoteviews(...)
noti.setonclickpendingintent(....)
这个跟appwidget类似,应该没问题的啊。
noti的时候按钮可以显示出来
但点不到,点击下去是整个notification。于是我想到listview item添加按钮后也是这种情况
于是我把notification的layout的按钮外面的layout设置focusable=false clickabled=false
但还是不行啊这个到底要怎么办才行呢
解决方案 »
- 谁能给我讲一下安卓到底是个什么东西
- 【求助】怎么把Broadcast Receiver里面获取的数据传给Activity
- android上进行图像处理(如锐化,调整对比度)最好使用哪个类
- 关于String提取字符,菜鸟求指教
- android开发一个简单的rss阅读器,求
- QuickSearchBox代码分析问题。
- 关于控件的布局小疑问一则
- webview加载字符串拼成的html,有点链接点击无响应怎么回事?
- 学习LIstView与Adapter时的问题
- 英语不好的人搞Android智能机就是在找死
- Android手机视频监控JNI问题【续】
- [界面设计] 请教安卓中可否把树状列表以另一种更合适的形式展现
是
noti.contentviews.setonclickpendingintent(...)
R.id.notice_cancel, receiveMsmIntent());
再在 private PendingIntent receiveMsmIntent() {
onCancelled(); Intent intent = new Intent(); PendingIntent contentIntent = PendingIntent.getActivity(DownService.this, 0,
intent, 0); // mReceiveSms.clear(); return contentIntent;
}
onCancelled();里写你