overlay

Weird behaviour in Android browser when selecting fields

筅森魡賤 提交于 2019-12-03 12:34:50
The Android Webkit browser (tested on 2.2, 2.3, and 3.0) seems to behave in weird ways when modal elements are put one above the other. In this example here ... I'm displaying a jQuery UI date picker with z-index 200, a gray overlay div spanning the whole document height and width with z-index 199 and behind all that is the regular form. In the example above, I have clicked on the dropdown control for the year where it says 2011. Instead of selecting that dropdown, the focus went on the textarea element way below the gray overlay. NOTE: This doesn't happen with a desktop Firefox browser, or

Qt Widget Overlays

最后都变了- 提交于 2019-12-03 12:30:01
问题 How do I overlay widgets in Qt? I want to create some widgets and place them out-of-layout, but rather tweak their size and position when some other widget's geometry is changed. Something like the buttons on the screenshot: 回答1: You just need to create your QPushButton (or any QWidget), indicate its parent QWidget and then display it. Don't add it to the parent layout else you will not be able to move it as you want. Don't forget to indicate its parent else it will be displayed as

Multiple overlay items in android

人走茶凉 提交于 2019-12-03 10:20:57
问题 I seem to be having a problem with using ItemizedOverlay and OveralyItems in it. I can get the first overlayItem to appear on the map but not any items after that. Code sample is on: http://www.anddev.org/multiple_overlay_items-t12171.html Quick overview here: public class Markers extends ItemizedOverlay { private Context ctx; private ArrayList<OverlayItem> mOverlays = new ArrayList<OverlayItem>(); public Markers(Drawable defaultMarker, Context cont) { super(boundCenterBottom(defaultMarker));

Android how to draw paint in free hand in MapView using overlay?

a 夏天 提交于 2019-12-03 10:08:47
问题 In my app Draw paint in free hand on Map view but searching lot of information finally got from rectangle shape draw on mapview but i want in place of rectangle draw free hand like zigzag how to change my code Any help please.. MapOverlay.java public class MapOverlay extends Overlay { private float x1,y1,x2,y2; private GeoPoint p1=null,p2=null; private MapExampleActivity mv = null; private Paint paint = new Paint(); private Path path = new Path(); private boolean isUp = false; //constructor

How to make an overlay with round edges (iPhone SDK)?

夙愿已清 提交于 2019-12-03 10:06:48
I've just received a lot of good responses to the question about making overlay views. Is there a way that I can make an overlay view on the iPhone SDK? Another question I have is how to make an overlay view have round edges like in the Skype iPhone app or in the Phone.app. Thanks. MrMage You can use these helper functions and then mask/clip to the resulting CGPath : http://fabian-kreiser.com/index.php?id=1135350598525812781 Or use view.layer.cornerRadius , as seen in How do I create a round cornered UILabel on the iPhone? . Use the view.layer's cornerRadius property. #include <QuartzCore

Marking Current Location on Map, Android

江枫思渺然 提交于 2019-12-03 10:03:39
问题 I followed some tutorials to create an application that shows the current position of the user on the map with a marking. But for some reasons I can't get to work the marking part? The other parts work well, but whenever I add the marking code the application crashes. Here is the code: public class LocationActivity extends MapActivity { private MapView mapView; private LocationManager lm; private LocationListener ll; private MapController mc; GeoPoint p = null; Drawable defaultMarker = null;

The most elegant way of creating a fullscreen overlay on Mac OS X (Lion)?

蹲街弑〆低调 提交于 2019-12-03 09:30:33
问题 I'm searching for the "best" way of creating a fullscreen overlay under Mac OS X. I want to create a transparent or semi-transparent overlay, which cares about mouse events and shows other input/output elements. This overlay should be above every other GUI items (like the CMD-Tab overlay). Do you know how to do it effectively? At the moment I'm playing around with this kind of code: int windowLevel = CGShieldingWindowLevel(); NSRect windowRect = [[NSScreen mainScreen] frame]; NSWindow

How to subview a camera view?

好久不见. 提交于 2019-12-03 09:14:24
I am making an app that will let the user see themselves in a 'mirror' (the front facing camera on the device). I know of multiple ways of making a UIImageViewController with a view overlay, but I want my app to have it be the opposite way. In my app, I want the camera view to be a subview of the main view, without the shutter animation or the ability to capture photos or take videos and without it being full screen. Any ideas? The best way to accomplish this is to not use the built-in UIImagePickerController, but rather use the AVFoundation classes. You want to create an AVCaptureSession and

Android Map Performance poor because of many Overlays?

孤者浪人 提交于 2019-12-03 08:56:25
I have a map in my android application that shows many markers (~20-50). But the app performs very poor when i try to scroll/zoom (in Google Android Maps i did a sample search for pizza and there were also some 20-50 results found and i didn't notice any particular performance problems when zooming/scrolling through the map). Here is my (pseudo)code: onCreate() { .... drawable = this.getResources().getDrawable(R.drawable.marker1); itemizedOverlay = new MyItemizedOverlay(drawable,mapView); ... callWebServiceToRetrieveData(); createMarkers(); } createMarkers(){ for(elem:bigList){ GeoPoint

Camera preview UI overlay on Android?

混江龙づ霸主 提交于 2019-12-03 08:50:53
问题 How do I write code which layouts UI elements (Buttons, etc) over camera preview on Android ? 回答1: Put the SurfaceView in a container that allows for Z-axis layering, such as RelativeLayout or FrameLayout . Put the things to appear on top of the SurfaceView later in the XML -- later children of a parent will draw over top of earlier children in the parent. Here is a project using a SurfaceView for video playback that demonstrates the technique. The same concepts should hold for a SurfaceView