安卓使用window manager往屏幕上添加一个view
如何往屏幕中任意位置添加一个view。直接上代码一、获取window managerWindowManager windowManager = getWindowManager();二、实例化你要添加的控件ImageView imageView = new ImageView(context);三、设置layoutparams,注意这里要用到WindowManager.LayoutParamsWindowManager.LayoutParams layoutParams = new Win