overlay

How to detect when my Activity has been obscured?

橙三吉。 提交于 2019-12-21 17:49:55
问题 I would like to be able to detect if my Activity has been obscured by, say, a system alert or some other overlay (for example the power menu when I long press on the power button), or some malware that detects the launch of my Activity. I noticed that the foreground app in this case would still be my app, so I can't simply base it on what the foreground app is. I also notice that onPause() isn't called when my Activity is obscured, so I can't put any logic in onPause() either. Even if I can

Expanding Overlay Marker on Google Maps?

为君一笑 提交于 2019-12-21 17:28:30
问题 I can draw overlay items onto google maps just fine, an image that looks like: ______ | | ______ \/ Where the "/" part is the "pin" that marks the lat/lon on the map and a picture in the middle of it. My question is, is there any way to expand this when the user clicks on it? I'll of course have to change this to some kind of dialog or layout and change it when it gets clicked. I want to have it smaller like that with just an image when not clicked on, but when it is clicked on it expands

How to create page overlay while data is loading - asp.net/jquery/blockui

蓝咒 提交于 2019-12-21 15:24:12
问题 I'm trying to display an overlay that says "page loading...please wait" while data is being retrived from a sql server. I'm hoping to use the BlockUI plugin for this but anything will do. I have an ASP.NET page using a site.master. The plugin works but no matter what I tried, it only appears AFTER the page was fully loaded. The bulk of the waiting is down to work done in the Global.asax file. In the Session_Start section, I have a function that returns data to populate dropdown menus on my

Text and background-color overlay on image

ⅰ亾dé卋堺 提交于 2019-12-21 13:04:22
问题 I'm trying to create a solid-color overlay that exactly matches the size of an image, and display text on that overlay. I'd like to do this with HTML and CSS only, if possible. The image may be of any size, and will be sized to fit and centered within its parent container. Something like this (which does not work): HTML: <div class="img-overlay"> <img src="file.jpg"> <div class="overlay">Text will flow...</div> </div> CSS: .img-overlay img { margin: 0 auto; max-height: 100%; } .overlay {

Possible? — A div overlay which is completely ignored by mouse events (so that mouse events effect only the div below)

我与影子孤独终老i 提交于 2019-12-21 11:45:06
问题 I have a google map in an iframe and wrapped in a div. Above that div, i have another, which serves to create a recessed shadow effect. The problem is that this overlayed div will take priority of any mouse events, so it renders the interactive google map below useless. There must be a way I can make the overlayed div ignore mouse events, letting the div below get them. (please, please!) Or, is there another way to do it? here's the code being output: <div id="pageWrapper" style="display:

How to accurately make a map for a map-overlay

不羁岁月 提交于 2019-12-21 05:41:23
问题 I have images covering the whole of South Africa. These are in Tiff format and have coordinates embedded into them. I am trying to take these images (about 20 images) and use them as an map overlay in my iPhone app. My problem lies with cutting the maps up into tiles (accurately). MapTiler is the application which I plan on using to cut these massive images up into the tiles, but it askes me for several details. I have to choose from: Custom definition of the system (WKT, Proj. 4, ...) WGS84

proximity search google map

ⅰ亾dé卋堺 提交于 2019-12-21 05:37:24
问题 I am using google map v3 to capture all the addresses in a MS SQL database table called Locations which will have columns like LocationName, LocationAddress, LocationZip, LocationState, LocationCity, LocLatitude, LocLongitude and LocationType(like hospital, physician office or emergency centers etc).. I have an input box where users can search by keyword and a dropdown with 5,10, 20 and 50 miles radius option. I have been able to use the input box and pass the typed keyword as querystring to

Jquery UI modal dialogs

百般思念 提交于 2019-12-21 05:22:24
问题 I have a problem with Jquery UI modal dialogs. I have modal dialog (dialogA), which can create another modal dialog (dialogB). After the second creation and closure of the dialogB the overlay of dialogA disappear. Here is my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head><link type="text/css" rel="Stylesheet" href="ui-lightness/jquery-ui-1.8.custom.css" />

Preventing overlays from disappearing when zoomed - MKMapView & MKOverlay

女生的网名这么多〃 提交于 2019-12-21 04:56:07
问题 I am working on an iPhone / iPad app that is using semi-transparant tiled map overlays via MKMapView and MKOverlay. I want users to be able to zoom in deeply into the maps, but the resolution of my map overlays only goes to level 6. I do not want to limit zooming. But... If a user zooms "too far" and then scrolls to a new tile, if they are zoomed deeper than the tree of overlay tiles, my overlay is not drawn. I want the overlay to draw even when the user is zoomed in deep. Are there any best

Semi-transparent QWidget over QGLWidget: Strange results

主宰稳场 提交于 2019-12-21 04:34:23
问题 I have a full size QGLWidget which paints the application background using QPainter (might change to native openGL commands in the future). On top of this QGLWidget I use QWidgets (non-GL) for the user interface elements. These are, for example, QLineEdits and QPushButtons. I put them into a custom painted QWidget which uses semi-transparent background painting. The paintEvents of the QLineEdit and QPushButton are overwritten and use semi-transparent backgrounds, too. The whole UI should look