Hi,
Is it possible to have a partial screen system alert that passes touch events that are outside its window to the layer underneath? I'm trying to do this but I can't seem to figure out how. Here's the code where I create the View. params = new WindowManager.LayoutParams( WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.TYPE_SYSTEM_ALERT, WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, PixelFormat.TRANSLUCENT); RelativeLayout mainView = new RelativeLayout(service); LinearLayout l = new LinearLayout(service); RelativeLayout.LayoutParams param_one = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); param_one.width=500; param_one.height=400; param_one.leftMargin=200; param_one.topMargin=354; l.setTag(first_tag); l.setOrientation(LinearLayout.VERTICAL); l.setBackgroundColor(0x00ffffff); EditText et = new EditText(service); et.setBackgroundColor(Color.parseColor("#0b0b0b")); //TODO: not perfect color et.setTextColor(Color.LTGRAY); et.setWidth(500); et.setTag(second_tag); et.setTextSize(20); LinearLayout.LayoutParams llp = new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); llp.setMargins(20, 30, 20, 1); et.setLayoutParams(llp); l.addView(second_test); mainView.addView(l, param_one); The system overlay displays fine. However, even though I have set FLAG_NOT_FOCUSABLE, touch events outside of the system alert window don't seem to be going down to the lower layer. The system over takes up a rectangle from screen x,y coordinates 500,354 onwards, but touch events above 500 for example don't get registered by the window beneath. How can I achieve this? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/5c37c4ce-0a6c-4894-a889-dec544dcdd5a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.