I am adding View using WindowManager.
He correctly shows what I wanted to do,
but i have a problem. This is problem.
- pressing the back key does not affect the android component (for example, activity).
I want my added view to be focused, (you can click the internal view button) only when you click on the view, and outside the view they can handle their work. (for example, if there is a button, you can click, and when you press the back key, the upper activity disappeared)
but if I add the flag - WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, then I can not get the onClick method on my added browse button. but the back button is working correctly.
otherwise, if I remove the flag, I can get the onClick callback, but now the back button does not work.
I have a dilemma .: (
Thanks.
source share