I have a Fragment with ImageView. How I can show this Fragment on top system android ActionBar?
For: Wottah
ActionBar should be visible. It is necessary that the overlap would be my piece of it. We need to use something on this:
ImageView view = new ImageView (getActivity ());
view.setBackgroundColor (Color.GREEN);
WindowManager.LayoutParams p = new WindowManager.LayoutParams ();
p.gravity = Gravity.TOP;
p.type = WindowManager.LayoutParams.TYPE_APPLICATION_PANEL;
p.token = view.getWindowToken ();
WindowManager mWindowManager = (WindowManager) getActivity (). GetSystemService(Context.WINDOW_SERVICE);
mWindowManager.addView (view, p);
Wottah, unfortunately your answer did not help. I looked up the source files of the android popupwindow and their decision to apply in my project.
The task: we have application. And standart android actionbar that (as we know) is a separate part of the application and my view may not be evidence on top of it.
The solution of the following:
My view:
How do I use it: