Questions tagged [android-windowmanager]

The Android WindowManager is a system service, which is responsible for managing the z-ordered list of windows, which windows are visible, and how they are laid out on screen.

The Android WindowManager is a system service, which is responsible for managing the z-ordered list of windows, which windows are visible, and how they are laid out on screen.

Check the official WindowManager documentation for more details on the contract interface.

565 questions
0
votes
1 answer

Close/Kill Android application from recent application on soft key press

I have a overlay view over all apps. I want to close the overlay view from screen on soft key press (home, back and recent). I have a transparent activity with no content which is starting a service having overlay view. public class…
Ajeet
  • 1,540
  • 1
  • 17
  • 30
0
votes
2 answers

How to get onBackPressed event in a service?

Trying to make something similar to facebook chat head. When we click on the chat head it opens up the chat. Now when we press back button it closes the popup of chat. How to capture onBackPressed event in a service?
Pranav Agrawal
  • 466
  • 6
  • 17
0
votes
0 answers

Displaying custom dialog below specific control

So far, I have tried displaying custom dialog at specific position on the screen using below code : Dialog dlg = new Dialog(MainActivity.this); dlg.setContentView(R.layout.customlayout) Window window = dlg.getWindow(); …
Jaimin Modi
  • 124
  • 1
  • 15
0
votes
0 answers

Detect Swipe Gesture in WindowManager

I know how to achieve Swipe Gesture on Views. But I want to get SwipeGesture in WindowManager like this app doing As far as I know Gesture detector works on view. I have tried to detect Gesture but don't know how to achieve it. Can someOne shed…
Xar-e-ahmer Khan
  • 1,314
  • 15
  • 23
0
votes
1 answer

Change ImageView size on WindowManager programmatically

I have an ImageView service that added to the WindowManger here is the code android.view.WindowManager.LayoutParams layoutparams = new android.view.WindowManager.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,…
0
votes
1 answer

Android Listview item clicks and back button not working with floating window on top

I have successfully implemented a floating window to be displayed from a Service on top of all activities using Window Manager services. Also, I am handling the touch events to be able to drag it. As desired, the touch and click events on the…
0
votes
1 answer

onItemClickListener not working in TYPE_SYSTEM_ALERT view

I use Windows Manager to show huge listview. Here is code, that I use: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); LayoutInflater ltInflater…
umni4ek
  • 365
  • 1
  • 2
  • 16
0
votes
1 answer

Not able to set width of ImageView in WindowManager

I have been developing app for chat heads Android. I have created a service such as below. This service is started by the MainActivity. public class StatusBarService extends Service { private WindowManager windowManager; private ImageView chatHead…
0
votes
1 answer

How to turn on screen again after user lock screen while activity is in foreground

Scenario: I have an activity that is running in foreground.. After a while, screen will auto lock. Later, I receive a new Intent that requires the screen to be shown again regardless of lock screen.. How should I turn on the screen while this…
xialin
  • 7,686
  • 9
  • 35
  • 66
0
votes
0 answers

Clicking on ImageView and view behind him at the same time

i have windowManager that is top of all views and in windowManager there is ImageView, how can i click on ImageView and screen behind him at the same time ? any suggestions ? thanks in advance.
Gog Avagyan
  • 135
  • 1
  • 7
0
votes
1 answer

ImageView on WindowManager - click / touch / swipe through

I created a small service, just like here: Facebook Chatheads Service public class ChatHeadService extends Service { private WindowManager windowManager; private ImageView chatHead; @Override public IBinder onBind(Intent intent) { // Not…
0
votes
1 answer

Android Error Window Causes Back Button to Stop Working

I've got an application that should overlay the notification bar and perform actions on touch.. For now, I managed to get it working by creating a system overlay button as: WindowManager.LayoutParams params = new WindowManager.LayoutParams( …
0
votes
2 answers

Making grid filled with Glide more structured

I asked this question on here i was trying to load wide and long images with Glide into a GridView, and wanted to load these different sized images more uniformly like Picasso does while keeping the aspect ratio as much as possible. The answer i got…
Martin Seal
  • 616
  • 2
  • 14
  • 32
0
votes
1 answer

window manager overlay touch disables other apps underneath

I am trying to implement a hidden overlay on top of all the apps. What I am able to achieve is on swipe of the overlay view, I am able to display a dialog. But if user touch any other apps which is below my overlay, that is not working. If user do…
hacker
  • 8,919
  • 12
  • 62
  • 108
0
votes
1 answer

FLAG_TRANSLUCENT_NAVIGATION makes Action Bar transparent

I'm trying to make Navigation Bar transparent, but keep Action Bar as it is. Following code makes both transparent: Window w = getWindow(); w.setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION,…
surlac
  • 2,961
  • 2
  • 22
  • 31