DialogFragment with clear background (not dimmed)

What works for me is to adjust the WinowManager.LayoutParams in onStart() of the DialogFragment: @Override public void onStart() { super.onStart(); Window window = getDialog().getWindow(); WindowManager.LayoutParams windowParams = window.getAttributes(); windowParams.dimAmount = 0.90f; windowParams.flags |= WindowManager.LayoutParams.FLAG_DIM_BEHIND; window.setAttributes(windowParams); }

Cross browser way to rotate image using CSS?

http://jsfiddle.net/tJkgP/2/ CSS to rotate by 45 degrees: .desk { width: 50%; height: 400px; margin: 5em auto; border: solid 1px #000; overflow: visible; } .desk img { behavior:url(-ms-transform.htc); /* Firefox */ -moz-transform:rotate(45deg); /* Safari and Chrome */ -webkit-transform:rotate(45deg); /* Opera */ -o-transform:rotate(45deg); /* IE9 */ -ms-transform:rotate(45deg); /* IE6,IE7 */ filter: progid:DXImageTransform.Microsoft.Matrix(sizingMethod=’auto expand’, M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476); … Read more

Is there a way to use use text as the background with CSS?

SVG text background image body { background-image:url(“data:image/svg+xml;utf8,<svg xmlns=”http://www.w3.org/2000/svg” version=’1.1′ height=”50px” width=”120px”><text x=’0′ y=’15’ fill=”red” font-size=”20″>I love SVG!</text></svg>”); } <p>I hate SVG!</p><p>I hate SVG!</p><p>I hate SVG!</p><p>I hate SVG!</p> <p>I hate SVG!</p><p>I hate SVG!</p><p>I hate SVG!</p><p>I hate SVG!</p> Here is an indented version of the CSS so you can understand better. Note that this does not work, … Read more

How can I change the background of Android alert dialogs?

Your approach won’t work. It seems AlertDialog (and Builder) hardcode the theme and don’t honor alertDialogStyle anywhere: protected AlertDialog(Context context) { this(context, com.android.internal.R.style.Theme_Dialog_Alert); } public Builder(Context context) { this(context, com.android.internal.R.style.Theme_Dialog_Alert); } They came to the same conclusion here. A custom dialog class derived from AlertDialog that calls the protected constructor AlertDialog(context, R.style.MyOpaqueAlertDialog) would be a … Read more

iOS Background downloads when the app is not active

Add below in your – (void)applicationDidEnterBackground:(UIApplication *)application UIApplication *app = [UIApplication sharedApplication]; UIBackgroundTaskIdentifier bgTask; bgTask = [app beginBackgroundTaskWithExpirationHandler:^{ [app endBackgroundTask:bgTask]; }]; and you are good to go… I have this in one of my published download manager app This will work just fine. You can also check how much time you have, since apple only … Read more