Questions related to drawing or setting shadows on an object. It refers to graphical shadow in user interfaces and 3D rendering and not to be confused with conceptual shadows (copies) of an object, library, database etc.
Questions tagged [shadow]
2031 questions
35
votes
5 answers
Drop a shadow to right and bottom of uiview
I have to drop a shadow to the right and bottom of uiview.Im doing this in interface builder.But I see the shadow dropped to top of it.Tried differnt sizes.but couldn't get…

Honey
- 2,840
- 11
- 37
- 71
34
votes
9 answers
Inner shadow effect in flutter
According to the github issue there is no inset attribute in ShadowBox yet. Is there any workaround how to emulate inner shadow right now in flutter.
I like to achieve inner shadow effects like you can see on the following images

Mac
- 468
- 1
- 5
- 10
34
votes
11 answers
How to make the new long shadow trend with CSS?
Out there is a new trend along with Flat UI called "long shadow".
This is an example picture:
Credit
I really like it and now I want an effect like that on my site. But I won't make a picture, I want to do it in CSS! (Or HTML5, jQuery etc).
I…

Michael Schmidt
- 9,090
- 13
- 56
- 80
33
votes
2 answers
Stop CALayer shadow from affecting subviews?
I have a custom UIControl, and I want it to have a shadow, so I set the relevant properties on its layer. A shadow appears around the view as desired, but a shadow also appears under the text of a UILabel, which is a subview. How do you stop this?…

Rob N
- 15,024
- 17
- 92
- 165
32
votes
8 answers
Adding Shadows at the bottom of a container in flutter?
I have a simple screen with a container about 100 in height and with blue color. I want to add a shadow or elevation at the bottom of the container.
This is my code below
import 'package:flutter/material.dart';
import…

yoohoo
- 1,147
- 4
- 22
- 39
32
votes
7 answers
How to add drop shadow to TextFormField In Flutter
I have a text form field in flutter I want to add a drop shadow to it. how should I do that?
final password = TextFormField(
obscureText: true,
autofocus: false,
decoration: InputDecoration(
icon: new Icon(Icons.lock, color:…

NicoleZ
- 1,485
- 3
- 22
- 43
31
votes
15 answers
Remove UIWebView Shadow?
Does anyone know if its possible to remove the shadow that is placed on the UIWebView window?
Example: http://uploadingit.com/files/1173105_olub5/shadow.png
If its possible how do you do it?
Thanks
dlewis23
30
votes
3 answers
SwiftUI, shadow only for container
For example, I have this view:
import SwiftUI
struct TarifsScreen: View {
var body: some View {
GeometryReader { geometry in
VStack {
VStack {
…

alexbayker
- 882
- 9
- 19
29
votes
7 answers
Android Unable to remove the color at the top and bottom
I have added a scrollView and if deploy on the android tablet,it has some problems. But it works fine on cellphone.
When users move to the top or bottom of the whole page,it will automatically show the blue shadow which indicates users reaching the…

Thomas Lee
- 1,001
- 2
- 13
- 31
29
votes
4 answers
In Android Studio message "Paint.setShadowLayer.. graphics not accurate.." without this code
I get this message in android studio xml preview:
"The graphics preview in the layout editor may not be accurate: -Paint.setShadow is not supported."
Without having this line of code at all in my project.
Also I tried to run "Edit-Find-Find in Path"…

Yuval Levy
- 2,397
- 10
- 44
- 73
29
votes
4 answers
Removing the shadow from a button
The button I want is the one at bottom, but the one I have is the top.
The problem arises from the fact that the top button in HTML:
and the bottom button in…

LarsChung
- 703
- 5
- 10
- 24
27
votes
4 answers
How to add shadow on CardView aligned to bottom of parent
I have a CardView aligned bottom to screen, destpite the elevation I want to add more shadow to top of the CardView. I've tried with
android:shadowColor="#000"
android:shadowDx="0"
android:shadowDy="30"
android:shadowRadius="50"
But see no…

Stefanija
- 1,388
- 2
- 12
- 25
27
votes
11 answers
TextView shadow destroyed while capture image
Shadow gets destroyed while capturing image of textview.
I added text shadow programmatically using setShadowLayer.
tv.setShadowLayer(20, 0, 0, Color.BLACK);
when I capture image using…

Rahul Mandaliya
- 738
- 1
- 12
- 36
26
votes
7 answers
how to set shadow to a View in android?
I want to know how to add a shadow layer to any general View in android. for eg: suppose i have a layout xml, showing something like this..

aqs
- 5,632
- 3
- 24
- 24
26
votes
8 answers
Calculating shadow values for all Material Design elevations
In the latest Material Design documentation (https://www.google.com/design/spec/what-is-material/elevation-shadows.html#elevation-shadows-elevation-android-) an exhaustive set of UI elements are referenced with their respective elevation (z-index in…

Anthony Wijnen
- 261
- 1
- 3
- 6