overlay

Tutorial — Android Map Pin drop animation — Working right [closed]

时光毁灭记忆、已成空白 提交于 2019-12-30 00:42:06
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I needed the map pin drop animation for my android application. Doing a lot of research, i found nothing useful . So i created a small hack. Just posting the code so that other can use it and modify it

ugly fragment transition to surfaceview with overlay

狂风中的少年 提交于 2019-12-29 08:56:31
问题 My app one of the fragments draws a map in a surface view with an overlay for buttons and text. Most of the other fragments are lists. My problem is that during the transition between the map and another fragment, ugly black rectangles momentarily appear in the map view where the text and button views are placed. This appears more pronounced on a transition back to the map, although it does happen in both directions. I am using a slide-left/slide-right animation which works nicely in all

How to fix nodes when plotting a subset over a complete network using igraph R

亡梦爱人 提交于 2019-12-29 08:50:09
问题 I have a problem concerning network visualization using the igraph package provided in R. Assume that you have a certain network, which contains the total sample of nodes and edges. Let me name this network netX: netX <- structure(c(1, 0.48275862, 0.51724138, 0.48275862, 0.27906977, 0.06896552, 0.34482759, 0.32352941, 0.06896552, 0.34482759, 0.03448276, 0.06896552, 0.20689655, 0.17241379, 0.17241379, 0, 0.23333333, 0.27586207, 0.21621622, 0.24137931, 0.48275862, 1, 0.4137931, 0.35714286, 0

Java GUI, Multiple Frames

半世苍凉 提交于 2019-12-29 08:23:08
问题 How do I go about creating what I describe below? First, here is the basic look of my GUI: When I click on Add New Account I want to have the GUI pop up a small window where the user can enter log-in credentials. I would need this information to be passed back into the main GUI, so I am lost as how to approach this. The same goes for Preferences or Remove Account . How do I go about creating a "GUI Overlay" of sorts. Sorry, I can't figure out the correct terminology for the effect I am

How to create an overlay window in Java?

五迷三道 提交于 2019-12-29 04:06:06
问题 I'm trying to create a HUD style display for a foreign application. To do this, I'd need to make a transparent overlay window, that would be placed on top of the window of the foreign application. The overlay window should allow me to place widgets and draw text on it. Events should get forwarded to the underlying window, if they happen on the transparent area (and otherwise allow the widgets to work as expected). I'm doing this on OSX with Java. I'd hope to do this with pure Java with

Make custom overlay clickable (Google Maps API v3)

情到浓时终转凉″ 提交于 2019-12-29 03:35:29
问题 I have a custom overlay class ( ImageOverlay ) which inherits from google.maps.OverlayView . I want it to respond to Google Maps click events (not just DOM click events) but simply using addListener doesn't seem to do the trick. e.g. I have a shapes array which contains a mixture of google.maps.Polygon and ImageOverlay objects: for (var i in shapes) { google.maps.event.addListener(shapes[i], 'click', function(){alert('hi')}); } Clicking on the polygons triggers an alert but clicking on the

Receiving hidden status bar/entering a full screen activity event on a Service

两盒软妹~` 提交于 2019-12-29 00:40:51
问题 I have a service that adds some views to the window manager (something like facebook's chat heads). This views stay on top of everything all the time, even when I'm on the camera app. Is it possible to know when some activity (like the camera or a video player) is using full screen so I can hide my views? Edit: There's something called View.OnSystemUiVisibilityChangeListener but it requires API 11. My target is 9, but it looks like this is exactly what I need. Any alternative for API 9? 回答1:

Receiving hidden status bar/entering a full screen activity event on a Service

限于喜欢 提交于 2019-12-29 00:40:36
问题 I have a service that adds some views to the window manager (something like facebook's chat heads). This views stay on top of everything all the time, even when I'm on the camera app. Is it possible to know when some activity (like the camera or a video player) is using full screen so I can hide my views? Edit: There's something called View.OnSystemUiVisibilityChangeListener but it requires API 11. My target is 9, but it looks like this is exactly what I need. Any alternative for API 9? 回答1:

Overlay Swing Text Label as Text is Entered

假如想象 提交于 2019-12-28 04:36:08
问题 Various forms in my program use JTables for which I've been able to use a Key Listener to select a row as the user types. This works great but I would like to provide some feedback to the user to show what text is being entered. I've tried creating frame/labels but can't get them to show correctly. My basic thoughts were - create the frame (if it doesn't already exist), create the label and set the text. Eg: private void showSearchLabel(String search) { if (null == searchTextFrame) {

Draw overlay on camera iOS

浪尽此生 提交于 2019-12-27 00:43:29
问题 Users need to be able to take photo of their ID. I need to add a blue frame to camera view as a guide. Guide should have same aspect ratio on all device sizes and fit a label with instructions. Can I accomplish this using UIImagePicker? Here is some incomplete code. Thanks for any help. UIImageView *overlayImage = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@""]]; CGRect overlayRect = CGRectMake(0, 0, self.view.frame.size.height - 16, self.view.frame.size.width - 16); [overlayImage