dropshadow

How to add a blurred drop shadow to a button?

这一生的挚爱 提交于 2019-12-18 10:36:29
问题 I need to add blurred drop shadow to my button: I tried to create background with layer-list xml drawable, but it not looks like blur. <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <!-- Drop Shadow Stack --> <item> <shape> <corners android:radius="45dp" /> <padding android:bottom="2dp" android:left="1dp" android:right="1dp" android:top="1dp" /> <stroke android:width="6dp" android:color="#007879E8" /> </shape> </item> ////// 10

Drop shadow on a div container?

▼魔方 西西 提交于 2019-12-18 10:27:56
问题 I have a searchbox with auto-suggest that pops a div up underneath it with multiple search string suggestions (like google). Is it possible to have drop shadow on the auto-suggest box with CSS or will I need a script of some sort? I tried a background image but the number of suggests can vary from 1 to 10 or 15. I'd prefer something that works in IE6+ and FF2+ if possible. Thanks! 回答1: This works for me on all my browsers: .shadow { -moz-box-shadow: 0 0 30px 5px #999; -webkit-box-shadow: 0 0

WPF drop shadow

一世执手 提交于 2019-12-17 22:22:11
问题 Currently I'm making something in WPF that has a border that contains a grid and other controls. The problem I'm facing is that whenever I set the Border.Effect property to a drop shadow effect every control contained in the border now has a drop shadow. Is there a way to set the shadow just to the border and not every control contained in the border? Here is a short example of my code: <Grid> <Border Margin="68,67,60,67" BorderBrush="Black" BorderThickness="1" CornerRadius="10"> <Border

Drop Shadow in an undecorated Pane! JAVAFX

蓝咒 提交于 2019-12-17 16:35:23
问题 I'm trying to make my Pane a little bit better, visually, so, what I'm doing is: set my stage UNDECORATED (OK) and (TRYING) to add a dropshadow effect (NOT OK). I Searched (A LOT) questions like this over the Internet, found some similar cases (creating undecorated stage in javafx 2.0 and How to add shadow to window in JavaFX?) but neither works for me. It Seems like the drop shadow JUST isn't set! Can't understand why. See what i got: public static int showConfirmDialog(Window father, String

Add drop shadow effects to EditText Field

自古美人都是妖i 提交于 2019-12-17 08:54:10
问题 I am trying to design an EditText Field having Shadows (bottom and right side) like this tried googling & hunted many SO discussions but all are for TextView not EditText. This is my code adding shadow to Input Text but not to TextField <EditText android:id="@+id/txtpin" android:maxLength="4" android:layout_marginLeft="10dp" android:layout_height="37dp" android:gravity="center_horizontal" android:inputType="textPassword" android:longClickable="false" android:layout_width="160dp" android

Android Drop Shadow on View

痞子三分冷 提交于 2019-12-17 08:11:11
问题 I have done some extensive searching for code examples on this but cannot find anything. In particular, I am looking to add a shadow to a png drawable I am using in an ImageView. This png drawable is a rounded rect with transparent corners. Can somebody please provide a code example of how to add a decent drop shadow to a view either in code or XML? 回答1: You could use a combination of Bitmap.extractAlpha and a BlurMaskFilter to manually create a drop shadow for any image you need to display,

DropShadow for WPF Borderless Window

為{幸葍}努か 提交于 2019-12-17 04:53:02
问题 I have a WPF Window with WindowStyle set to none. Is there some way I can force this window to drop a shadow (like the one you get when WindowStyle is not none)? I don't want to set AllowTransparency to true, because it affects the performance. And I also don't want to disable hardware rendering (I read somewhere that transparency performs better with it disabled). 回答1: I have written a little utility class that is able to do exactly what you want: drop a standard shadow over a borderless

Is it possible to use box-shadow in IE8?

假如想象 提交于 2019-12-14 03:58:00
问题 Why is this CSS being applied inconsistently across frameworks/environments/browsers? I've got a prototype created in Meteor where the CSS works fine in creating a shadow effect and adding a border to various images as they are hovered; specifically, in the Meteor prototype (it's a Sharepoint app, but testing features like this out is much quicker with Meteor) I have this CSS: #imgPostTravelTop:hover, #imgPostTravelTopRight:hover, #imgPostTravelCenter:hover, #imgPostTravelBottom:hover { z

Adding drop shadow to UITableView doesn't work properly

一笑奈何 提交于 2019-12-13 07:06:30
问题 I've created a sample app for adding drop shadow to a UITableView. When you click on the right navigation button a drop shadow is added to the table. The problem is that the shadow is added only to the part of the table visible in the screen. If I try to scroll up (and go off the table) or scroll down and see others cell the shadow is not visible. How can I set a shadow for the entire height of the table? If is possible I would have the shadow also if I scroll up and go off the table (for the

CSS Transparent Long Shadows

假如想象 提交于 2019-12-13 01:35:09
问题 So I was tasked with creating long shadows but on a textured background. The other tutorials online are all how to do it with a solid background which looks pretty terrible on textures or images for backgrounds. I got pretty close with it, trying a few different techniques but I came down to two possibilities, each with problems, so if anyone can help me debug either it would be greatly appreciated. These are not cross browser, I am just trying to figure out bare minimum if it is doable so