overlay

How does the Gmail Android app do the webview-header-overlay magic for the mail-conversation view?

安稳与你 提交于 2019-12-03 03:59:17
Using hierarchyviewer on the Gmail conversation view shows an interesting and unusual layout hierarchy: All messages in a single conversation are rendered in a single WebView (specifically a com.google.android.gm.CustomWebView , seen on the left). Only the body of the messages is rendered - the spaces where the headers would go are left blank . On top of the WebView is overlaid a com.google.android.gm.MessageHeaderScrollView (seen on the right) which uses a HybridConversationScrollContainer to position a MessageHeaderView in the correct position for each message in the conversation view. <->

Font Awesome Image Overlay

寵の児 提交于 2019-12-03 03:18:00
I'm currently creating a image gallery (using Zurb Foundation as Framework) and would like to show the zoom icon on image hover (like this example here: http://codepen.io/Twikito/pen/Jeaub ). But I would like the icon to be a font (Font Awesome) icon and not just one but 3 individual clickable icons.. Would that be possible? I've put a quick JSfiddle together using font-awesome. The CSS is hacked together but demonstrates what's possible. It should give you a starting point to experiment with. <a href="#" title="" class="image"> <img src="http://www.lyricis.fr/wp-content/uploads/2010/04

jquery overlay loading bar div

独自空忆成欢 提交于 2019-12-03 03:17:41
问题 So I have a table of data, and I'm getting data back using ajax. When data is being retrieved, the data from the table disappears and a small little loading circle appears. I'd prefer for the data to stay (I know how to do that) and for the loading circle to appear over the table in the center of it (not necessarily vertically, just at least horizontally), along with a slightly transparent background blocking out the view of the table a little (not the rest of the webpage). How can I make a

CSS: How to get this overlay to extend 100% with scrolling?

ぐ巨炮叔叔 提交于 2019-12-03 02:59:17
问题 Here is an example of the issue in question: http://dev.madebysabotage.com/playground/overlay.html You see there is a gray overlay over the entire page, but if you scroll down, the content below the initial loaded page doesn't have the overlay. I have an #overlay div and it seems it doesn't keep the 100% height during scrolling, so trying to figure out how to pull that off. Here's the full source: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>CSS Overlay</title> <style

How to create an overlay that blocks touch events to UI below it?

南楼画角 提交于 2019-12-03 02:47:32
I used a layer of framelayout with a semi-translucent background to create an overlay. But this overlay doesn't block touch events to interact with the views below it. How should create an overlay that blocks all touch events? Following code will add overlay on top of everything : View v1 = new View(this); WindowManager.LayoutParams params = new WindowManager.LayoutParams( 1000, 50, WindowManager.LayoutParams.TYPE_SYSTEM_ALERT, WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN, PixelFormat.OPAQUE); params.gravity = Gravity.BOTTOM; WindowManager wm

Android: Overlay TextView on LockScreen

做~自己de王妃 提交于 2019-12-03 02:27:39
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().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); getWindow().addFlags(WindowManager

Android Navigation Drawer and windowActionBarOverlay = true

三世轮回 提交于 2019-12-03 01:58:41
问题 I'm trying to implement the new Android Navigation Drawer in my application. I have created a BaseActivity.java that handles the Drawer setup and listeners, and I have two subactivities that extend this base class. On the second activity, I plan to use a different action bar style, using the following attrs: <item name="android:windowActionBarOverlay">true</item> <item name="android:background">@android:color/transparent</item> to make the action bar transparent, and make content richer, as

Simple & small, pure javascript lightbox (dialog overlay)? [closed]

徘徊边缘 提交于 2019-12-03 01:46:09
Does anyone know of a small, limited functionality lightbox built with pure javascript? This is for an embeddable widget, thus the reason of not using jquery. All I really need is creating an overlay for a specific div or simply by passing some HTML. There's a great list/comparison of lightboxes here . You can quickly scan which require a JS library (jQuery, MooTools, etc.) and which don't, and you can also see what features each supports. There's a sizable chunk of them that don't use any JS library, so you should be able to easily find one to suit your needs. Here's a few to get you started:

Multiple overlay items in android

僤鯓⒐⒋嵵緔 提交于 2019-12-03 00:51:38
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)); this.ctx = cont; // TODO Auto-generated constructor stub } @Override protected OverlayItem createItem

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

帅比萌擦擦* 提交于 2019-12-03 00:39:06
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 receiving the initial point public MapOverlay(MapExampleActivity mapV,float x,float y){ paint