overlay

Drawing over other applications in Android [closed]

本小妞迷上赌 提交于 2019-12-09 05:37:44
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . There is an interesting application called Twilight which appears to simply draw over all applications with a reddish filter to remove blue light during nighttime hours (presumably to help sleep). I'm interested in doing something similar, but not necessarily for sleep purposes. I'd

Android: Overlay TextView on LockScreen

余生长醉 提交于 2019-12-09 04:40:52
问题 Im trying to overlay a TextView on top of the LockScreen (Similar to how Android Overlays the time). Note: I dont want to by-pass the lockscreen, but just draw on top of it (without interfering with any of the touch events). I've tried using the following flags (in onCreate): getWindow().addFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE); getWindow().addFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE); getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED); getWindow(

Swift 3 : issue with AVVideoCompositionCoreAnimationTool to add watermark on video

左心房为你撑大大i 提交于 2019-12-09 01:34:24
问题 The following code was working perfectly to add a logo and a text to a video with AVVideoCompositionCoreAnimationTool. Then Swift 3 came! Now sometimes the video shows with the logo and text sometimes the video does not show when it is exported. let videoComposition: AVMutableVideoComposition = AVMutableVideoComposition() videoComposition.frameDuration = CMTimeMake(1, 60) videoComposition.renderSize = CGSize(width: clipVideoTrack.naturalSize.height, height: clipVideoTrack.naturalSize.height)

Overlaying a transparent background on an embedded video

。_饼干妹妹 提交于 2019-12-08 18:52:15
问题 I've a video which I've embedded in a fullwidth div panel. I'm trying to overlay a gradient on top of it, but I can't make it work. I've tried adjusting z-index, wrapping the video in another div, and - as below - adding an overlay class, but I must be missing something obvious. Whatever I try, the video jumps back on top of the other panels (which end up falling behind it). Would be so grateful for your help! <div class="videoContainer hide-for-small-only"> <div class="overlay"></div> <video

CSS Overlay Effect - Exclude certain container

孤人 提交于 2019-12-08 13:03:54
问题 I am applying an overlay effect to a webpage with the CSS shown here: .jqifade{ position: relative; background-color: #000000; height:2315px !important; /*set to page height*/ } This CSS overlays the entire webpage with a color (black) which is later set to 30% opacity with JS. I would like to exclude a div with id="noOverlay" so that the CSS is NOT applied to this div. Is this possible? And if so... how?? 回答1: It may be possible to make the z-index of that certain element higher than the

Avoid custom overlay click event when map is panning (google maps API)

空扰寡人 提交于 2019-12-08 12:41:58
问题 Related to this question: 'Make custom overlay clickable (Google Maps API 3)' and related also to my comment in the same question (posted here to give it more visibility and because I think is other problem). I have added a click listener to my overlay polygon but now I have the problem that when user wants to pan the map and clicks on an overlay to do that, when the mouse button is released the click event is triggered. Obviously I don't want to execute the onclick action when I just want to

What is a better way to implement a system wide side panel (similar to navigation drawer) in Android

允我心安 提交于 2019-12-08 12:20:58
问题 My aim: have a Page slide onto the screen when the user swipes in from the left side of any screen. My current solution: I start my Service (GlobalTouchService) which creates a narrow transparent view (floatingView) with an OnTouchListener this view is then added to side of the screen using WindowManager.addView on MotionEvent.ACTION_DOWN I add the inflated layout to this View (I call it innerView) on MotionEvent.ACTION_MOVE I adjust the width of the window and the left and right margins of

Android draw with finger over webView

自古美人都是妖i 提交于 2019-12-08 11:15:04
问题 How can I draw over a webView, I want a user to be able to circle and doodle over the webview. The gestureoverlayview would be good, but the drawn line will always disappear after the user takes their finger off the screen. I would like the user to be able to draw on the screen and keep the drawn lines there when the finger is lifted off. Many thanks 回答1: You can stack a WebView underneath a Canvas of some sort that allows the user to paint on it with touch inside of a RelativeLayout. To

JqueryTools overlay position based on window size

和自甴很熟 提交于 2019-12-08 10:39:43
问题 I'm using JqueryTools overlay, running into a frustrating issue where the overlay only positions itself from the screen viewport instead of the HTML top edge. I haven't found any solutions so far. Can someone shed some light on to achieve this? Others are having the same issue. Are there alternatives to overlays? The reason I picked Jquery tools, I can use any background image and customize bunch of different things. Here is the same issues listed on Jquery overlay forum. "The problem seems

How can I remove the shadow on the markers on my map?

不打扰是莪最后的温柔 提交于 2019-12-08 10:38:06
问题 I am displaying a custom marker on my Google Map. They are placed fine, but they have this funny shadow. How can I remove the shadow? @Override public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { super.draw(canvas, mapView, shadow); // ---translate the GeoPoint to screen pixels--- Point screenPts = new Point(); mapView.getProjection().toPixels(geoPnt, screenPts); // ---add the marker--- /*Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.pushpin