没有activity貌似弹不出浮窗吧,都没有设定一个具体的组件或者activity来参照浮窗弹出的位置,桌面或者启动器的桌面又不能捕捉的到,所以鄙人觉得做不到,至少得要有个activity
解决方案 »
- 西安北邮3g培训怎么样,希望大虾们给给看法
- you are office feint requires an active network connection
- 谁知道QQ通讯录中的那个联系人滑动时的效率问题是怎么解决的 ? 滑动时非常顺畅 .
- 求助,新手编译问题
- 在pc端用adb命名安装一个程序,如何返回安装成功或失败
- 【求助】
- 求助:有没有类似美图秀秀的开源软件
- <急>关于andorid调用第三方动态库问题
- ListView和ActivityGroup共同使用报空指针异常
- 【求助】HelloCharts柱状图怎么设置柱子宽度
- 请教如何kill掉后台运行的adb.exe
- 表格布局中可以用View来画一条横线进行分割为什么线性不可以
进行简单的修改就行了。
minflater = (LayoutInflater) context.getApplicationContext()
.getSystemService(Context.LAYOUT_INFLATER_SERVICE); mFloat = (LinearLayout) minflater.inflate(R.layout.float_window, null);
minflater = (LayoutInflater) context.getApplicationContext()
.getSystemService(Context.LAYOUT_INFLATER_SERVICE); mFloat = (LinearLayout) minflater.inflate(R.layout.float_window, null);
minflater = (LayoutInflater) context.getApplicationContext()
.getSystemService(Context.LAYOUT_INFLATER_SERVICE); mFloat = (LinearLayout) minflater.inflate(R.layout.float_window, null);
界面显示的本质是WindowManager,就是说Toast和Activity组件的界面显示最终都是调用的WindowManager。所以你把界面写到WindowManager是可以的。
minflater = (LayoutInflater) context.getApplicationContext()
.getSystemService(Context.LAYOUT_INFLATER_SERVICE); mFloat = (LinearLayout) minflater.inflate(R.layout.float_window, null);
界面显示的本质是WindowManager,就是说Toast和Activity组件的界面显示最终都是调用的WindowManager。所以你把界面写到WindowManager是可以的。能给个简单的DEMO不?我自己定义的都不能实现。