android-windowmanager

Android navigation bar overlay

耗尽温柔 提交于 2019-12-04 08:59:49
For my application I have to draw a bitmap on top of the Navigation bar on the bottom of the android screen. I am curious to know if the WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY can be used to overlay the navigation bar? Use the WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS should work :) 来源: https://stackoverflow.com/questions/21382283/android-navigation-bar-overlay

Why my EditText copy/paste menu is under the EditText? How change the z-order of popup window?

半腔热情 提交于 2019-12-03 17:07:11
问题 NOTE If someone know how to order (z-order) Windows added via windowmanager, i will also accept the answer because it's will answer all the question. Actually i only find to do windowManager.removeView(MyView) following immediatly by windowManager.addView(MyView) to put a view in front of the other, but this is not ideal because it's visually remove and add the view. it's look crazy that their is no build in function in android to do such a simple think. I create a view (linearlayout) that

WindowManager not allowing to pass touch

一个人想着一个人 提交于 2019-12-03 09:07:15
I have drawn an overlay using WindowManager. it's width and height are WindowManager.LayoutParams.MATCH_PARENT with transparent background. My view must be match parent and handle circle touch listener and pass the rest touch to the below screen I have two small circle in left and right corner . I make them draggable on screen that's working fine. But when I click on visible Home Screen button. WindowManager don't let the visible item clickable. int LAYOUT_FLAG = Build.VERSION.SDK_INT >= Build.VERSION_CODES.O ? WindowManager. LayoutParams.TYPE_APPLICATION_OVERLAY : WindowManager.LayoutParams

Why my EditText copy/paste menu is under the EditText? How change the z-order of popup window?

爱⌒轻易说出口 提交于 2019-12-03 05:18:26
NOTE If someone know how to order (z-order) Windows added via windowmanager, i will also accept the answer because it's will answer all the question. Actually i only find to do windowManager.removeView(MyView) following immediatly by windowManager.addView(MyView) to put a view in front of the other, but this is not ideal because it's visually remove and add the view. it's look crazy that their is no build in function in android to do such a simple think. I create a view (linearlayout) that contain an EditText. I add this view in the activity via WindowManager.addView (view, Layout_Params); but

Display a view using windowmanager on lock screen

一曲冷凌霜 提交于 2019-12-03 05:13:46
问题 I have a float icon that stays on top of all activities, but when the device get locked it disappear until the device get unlocked. Another meaning, I want to display a view (FloatIcon) on lock screen using windowmanager from service. This is my code so far. public class FloatIcon extends Service { private WindowManager windowManager; private ImageView floatIcon; @Override public IBinder onBind(Intent intent) { return null; } @Override public void onCreate() { super.onCreate(); windowManager

Android: Overlay TextView on LockScreen

做~自己de王妃 提交于 2019-12-03 02:27:39
Im trying to overlay a TextView on top of the LockScreen (Similar to how Android Overlays the time). Note: I dont want to by-pass the lockscreen, but just draw on top of it (without interfering with any of the touch events). I've tried using the following flags (in onCreate): getWindow().addFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE); getWindow().addFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE); getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED); getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); getWindow().addFlags(WindowManager

Display a view using windowmanager on lock screen

青春壹個敷衍的年華 提交于 2019-12-02 18:28:05
I have a float icon that stays on top of all activities, but when the device get locked it disappear until the device get unlocked. Another meaning, I want to display a view (FloatIcon) on lock screen using windowmanager from service. This is my code so far. public class FloatIcon extends Service { private WindowManager windowManager; private ImageView floatIcon; @Override public IBinder onBind(Intent intent) { return null; } @Override public void onCreate() { super.onCreate(); windowManager = (WindowManager) getSystemService(WINDOW_SERVICE); floatIcon = new ImageView(this); floatIcon

How to change the z-order of window added via WindowManager?

妖精的绣舞 提交于 2019-12-01 09:57:18
Is it possible to specify the z-order of each window ? in the image below each editText are in their own window added via WindowManager. as you can see i have a z-order problem like you see on the picture, the last window added seam to take the higher z-order. So the only way out i find to put a window at the higher z-order is to remove the view from windowManager and then immediately add it again. It's not very optimal solution, because visually the view disappear and reappear on the screen 来源: https://stackoverflow.com/questions/44231597/how-to-change-the-z-order-of-window-added-via

Show dialog with touch events over lockscreen in Android 2.3

夙愿已清 提交于 2019-12-01 04:52:49
I want to build a dialog which is visible on the lockscreen and can receive touch events. I built a window with WindowManager but only the TYPE_SYSTEM_OVERLAY Flag is shown over the lockscreen in GB (Android 2.3.7). Is there a way to create a system overlay which is visible on the lockscreen and can receive touch events in Android 2.3.7? There was a bug with FLAG_WATCH_OUTSIDE_TOUCH but I'm not sure how that affects me. Any ideas? I do not think you can launch an activity each time when device is locked without binding your application as admin privilaged app programatically. Once your app is

Show dialog with touch events over lockscreen in Android 2.3

£可爱£侵袭症+ 提交于 2019-12-01 01:51:55
问题 I want to build a dialog which is visible on the lockscreen and can receive touch events. I built a window with WindowManager but only the TYPE_SYSTEM_OVERLAY Flag is shown over the lockscreen in GB (Android 2.3.7). Is there a way to create a system overlay which is visible on the lockscreen and can receive touch events in Android 2.3.7? There was a bug with FLAG_WATCH_OUTSIDE_TOUCH but I'm not sure how that affects me. Any ideas? 回答1: I do not think you can launch an activity each time when