Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WindowManager windowManager = (WindowManager) getSystemService(Context.WINDOW_SERVICE);
- WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(WindowManager.LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT, WindowManager.LayoutParams.TYPE_u_wish, flag, PixelFormat.*);
- windowManager.addView(view, layoutParams);
- windowManager.removeView(view);
- WindowManager windowManager = (WindowManager) getSystemService(WINDOW_SERVICE);
- LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE);
- TextView view = (View) inflater.inflate(R.layout.activity_main, null);
- view.setText(your_clipboard_text);
- view.setBackgroundColor(Color.WHITE);
- WindowManager.LayoutParams params = new WindowManager.LayoutParams(WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.TYPE_PHONE, WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, PixelFormat.TRANSLUCENT);
- windowManager.addView(view, params);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement