glow

Android - How to make an icon glow on touch?

心不动则不痛 提交于 2019-11-30 02:28:56
How to get this blue glow effect over an icon? Is there any quick way of doing it? I really don't want to use photoshop for this effect. Any help would be really appreciated. If you want to generate the glow programatically, here's how you can do. My advice, generate it just once at the beggining of your activity, then create a StateListDrawable using it, as said in the comment : // An added margin to the initial image int margin = 24; int halfMargin = margin / 2; // the glow radius int glowRadius = 16; // the glow color int glowColor = Color.rgb(0, 192, 255); // The original image to use

How to make glow effect around a bitmap?

孤街醉人 提交于 2019-11-29 20:27:50
The following code is what I got so far. However, there are 2 issues: I want both inner and outer glow effects, which look similar to the Photoshop's blending options. But I only managed to make the outer glow, if I set BlurMaskFilter.Blur.INNER or other value, the whole image is blocked, instead of just edges. Despite I set " FF " as alpha value, the glow color is still very dark. Bitmap alpha = origin.extractAlpha(); BlurMaskFilter blurMaskFilter = new BlurMaskFilter(5, BlurMaskFilter.Blur.OUTER); Paint paint = new Paint(); paint.setMaskFilter(blurMaskFilter); paint.setColor(0xffffffff);

Android - How to make an icon glow on touch?

好久不见. 提交于 2019-11-29 00:10:01
问题 How to get this blue glow effect over an icon? Is there any quick way of doing it? I really don't want to use photoshop for this effect. Any help would be really appreciated. 回答1: If you want to generate the glow programatically, here's how you can do. My advice, generate it just once at the beggining of your activity, then create a StateListDrawable using it, as said in the comment : // An added margin to the initial image int margin = 24; int halfMargin = margin / 2; // the glow radius int

How to make glow effect around a bitmap?

最后都变了- 提交于 2019-11-28 16:30:48
问题 The following code is what I got so far. However, there are 2 issues: I want both inner and outer glow effects, which look similar to the Photoshop's blending options. But I only managed to make the outer glow, if I set BlurMaskFilter.Blur.INNER or other value, the whole image is blocked, instead of just edges. Despite I set " FF " as alpha value, the glow color is still very dark. Bitmap alpha = origin.extractAlpha(); BlurMaskFilter blurMaskFilter = new BlurMaskFilter(5, BlurMaskFilter.Blur

CSS: create white glow around image

独自空忆成欢 提交于 2019-11-28 04:15:55
How can I create a white glow as the border of an unknown size image? Use simple CSS3 (not supported in IE<9) img { box-shadow: 0px 0px 5px #fff; } This will put a white glow around every image in your document, use more specific selectors to choose which images you'd like the glow around. You can change the color of course :) If you're worried about the users that don't have the latest versions of their browsers, use this: img { -moz-box-shadow: 0 0 5px #fff; -webkit-box-shadow: 0 0 5px #fff; box-shadow: 0px 0px 5px #fff; } For IE you can use a glow filter (not sure which browsers support it)

CSS/HTML: Create a glowing border around an Input Field

故事扮演 提交于 2019-11-28 02:35:00
I want to create some decent inputs for my form, and I would really like to know how TWITTER does their glowing border around their inputs. Example/Picture of the Twitter border: I also don't quite know how to create the rounded corners. Here you go: .glowing-border { border: 2px solid #dadada; border-radius: 7px; } .glowing-border:focus { outline: none; border-color: #9ecaed; box-shadow: 0 0 10px #9ecaed; } Live demo: http://jsfiddle.net/simevidas/CXUpm/1/show/ (to view the code for the demo, remove "show/" from the URL) How about something like this... http://jsfiddle.net/UnsungHero97/Qwpq4

CSS: create white glow around image

我们两清 提交于 2019-11-27 05:17:50
问题 How can I create a white glow as the border of an unknown size image? 回答1: Use simple CSS3 (not supported in IE<9) img { box-shadow: 0px 0px 5px #fff; } This will put a white glow around every image in your document, use more specific selectors to choose which images you'd like the glow around. You can change the color of course :) If you're worried about the users that don't have the latest versions of their browsers, use this: img { -moz-box-shadow: 0 0 5px #fff; -webkit-box-shadow: 0 0 5px

IPhone Text Glow Effect

北战南征 提交于 2019-11-27 03:51:35
In my IPhone application, I want the text in UILabel to glow for a second, then fade for a sec;. Also i want to repeat this cycle for say 3 or 4 times. Is this possible? As of 3.2 you there is direct support for shadows in the SDK. label.layer.shadowColor = [label.textColor CGColor]; label.layer.shadowOffset = CGSizeMake(0.0, 0.0); Play with the parameters: label.layer.shadowRadius = 3.0; label.layer.shadowOpacity = 0.5; And to avoid shadow being clipped by the label bouds: label.layer.masksToBounds = NO; Don't forget to #include <Quartzcore/Quartzcore.h> and link against the QuartzCore or

IPhone Text Glow Effect

泪湿孤枕 提交于 2019-11-26 10:56:13
问题 In my IPhone application, I want the text in UILabel to glow for a second, then fade for a sec;. Also i want to repeat this cycle for say 3 or 4 times. Is this possible? 回答1: As of 3.2 you there is direct support for shadows in the SDK. label.layer.shadowColor = [label.textColor CGColor]; label.layer.shadowOffset = CGSizeMake(0.0, 0.0); Play with the parameters: label.layer.shadowRadius = 3.0; label.layer.shadowOpacity = 0.5; And to avoid shadow being clipped by the label bouds: label.layer