You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reacted by Michael Kühnel, Nina Dimov, Andrei Alecu, Josh Drentlaw, Shinichi Kogai, Gabriel Matos, Carl, Alex Mantsurov, S.Stratis, Lawrence Taur and 233 more
Reacted by vondritz, Talouchy, Marvin Heilemann, john andrew asaria, tahir jamil, Tomasz Dudek, rg777, Julio Montilla, Yegor Medvedev, fromancient and 2 more
Reacted by vondritz, Talouchy, GalvinGao, john andrew asaria, Guilherme Prezzi, tahir jamil, Tomasz Dudek, rg777, Julio Montilla, Chris and 6 more
Reacted by Zeeshan, Pat Buchanan, Daniel Schniepp, vondritz, Talouchy, Santosh Joseph, Marvin Heilemann, john andrew asaria, Abdrahman, Eddy Verbruggen and 20 more
Reacted by tahir jamil, Guilherme Prezzi, Tomasz Dudek, rg777, Zac Grierson, Julio Montilla, Yegor Medvedev, fromancient, Pandishpan, CtDLa and 1 more
Reacted by tahir jamil, Tomasz Dudek, Julio Montilla, Yegor Medvedev, fromancient, Benjamin Grand, Kenneth Keim, CtDLa and saibbyweb
If anyone's interested, I've discovered this sort-of-hack: view.android.setBackgroundResource(android.R.drawable.dialog_holo_light_frame)
which gives an alright drop shadow on Android.
However add my +1 to this as well, it would be great to have a customisable, cross platform solution!
Reacted by Hannes Hille, Leo Caseiro, S.Stratis, Lawrence Taur, Josh Sommer, Luke Ramsden, Héctor Orellana , Pat Buchanan, AlanChauchet, eladsarusi and 11 more
Is there any estimate of when this might be a thing? We aren't deploying our app right away so can afford to wait for a bit, if someone could tell me if it's a few months out or more like a year, that would be super helpful.
Thanks to all of you who maintain NativeScript. ❤️
Reacted by Eric Berndt, Benjamin Grand and Vahid Najafi
Agreed here - we have often implemented this in angular projects via directives - will bring up in next weeks TSC meeting to put on the plan for 7.1 or shortly after, would be nice to close the loop here.
Reacted by Vahid Najafi, Lucky, Juan De Leon, kan101, Smaïl Hammour, Mark Lanham, Tom, Anthony Lenglet, Rob and Roberto von Schoettler
Reacted by MrSnoozles, Vahid Najafi, Lucky, Benjamin Grand, kan101, Tom and Anthony Lenglet
@NathanWalker I've noticed the box shadow disappears when a border-radius is applied. Is this the expected behavior for box shadows right now? I'm using ns 8
<FlexboxLayout width="200" height="200" style="box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);" >
i added it to my code, but i still can not see box-shadow
use "@nativescript/core": "~8.0.0"
I've also added to my element in line style: style="box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);" is this the case where only in CSS stylesheet perhaps is supported? UPDATE
It does seem to work under some circumstances I my case I found out that it show at the top but not a the bottom not sure why, also when I set borderBottomWidth="1" borderColor="black" then it doesn't work for me at all, but the same worked well for single label and buttons:
As you can see in the screenshoot the shadow only show at the top but only when I added and element above that:
Activity
mischah commentedon Dec 15, 2015
Would love to have this too.
Is this on the roadmap? Since #191 is closed.
jlooper commentedon Dec 16, 2015
I'd like to see this too, to make nice looking card interfaces. Pretty!
lyonzy commentedon Dec 16, 2015
If anyone's interested, I've discovered this sort-of-hack:
view.android.setBackgroundResource(android.R.drawable.dialog_holo_light_frame)which gives an alright drop shadow on Android.
However add my +1 to this as well, it would be great to have a customisable, cross platform solution!
aliatsis commentedon Dec 28, 2015
+1
tiagordc commentedon Jan 7, 2016
+1
andreyluiz commentedon Jan 12, 2016
+1
shantamg commentedon Jan 16, 2016
+1
gabrielbiga commentedon Feb 1, 2016
+1
arnolduis commentedon Feb 13, 2016
+1
ljx0517 commentedon Feb 24, 2016
+1
treio commentedon Mar 4, 2016
+1
burkeholland commentedon Mar 13, 2016
+1
Premitium commentedon Mar 15, 2016
+1
digitaldoggo commentedon Mar 29, 2016
+1
154 remaining items
Tyler-V commentedon Jun 16, 2020
This would be awesome! +1
steve-79 commentedon Aug 25, 2020
+1
kennethkeim commentedon Sep 1, 2020
Is there any estimate of when this might be a thing? We aren't deploying our app right away so can afford to wait for a bit, if someone could tell me if it's a few months out or more like a year, that would be super helpful.
Thanks to all of you who maintain NativeScript. ❤️
kan101 commentedon Sep 25, 2020
Try this https://market.nativescript.org/plugins/nativescript-vue-shadow/ There's an angular implementation too.
NathanWalker commentedon Sep 26, 2020
Agreed here - we have often implemented this in angular projects via directives - will bring up in next weeks TSC meeting to put on the plan for 7.1 or shortly after, would be nice to close the loop here.
oslc15 commentedon Oct 23, 2020
@NathanWalker any news on this from the TSC meeting? :)
NathanWalker commentedon Oct 23, 2020
Yes we are putting this on the 8.0 plan for sure however there may be an option to introduce in 7.x series.
alexgritton commentedon Apr 10, 2021
@NathanWalker I've noticed the box shadow disappears when a border-radius is applied. Is this the expected behavior for box shadows right now? I'm using ns 8
NathanWalker commentedon Apr 10, 2021
Hey @alexgritton thats correct we are adding combined with border radius in 8.1.
PetroSuch commentedon May 12, 2021
<FlexboxLayout width="200" height="200" style="box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);" >i added it to my code, but i still can not see box-shadow
use "@nativescript/core": "~8.0.0"
PetroSuch commentedon May 13, 2021
i also downloaded your demo project, but box-shadow doesnt work there too
https://github.com/williamjuan027/nativescript-movies-demo
cascading-jox commentedon Dec 11, 2021
I can't see it either. I just cloned nativescript-movies-demo and ran

tns run android. I see no box-shadow on any element.schoettler commentedon Nov 23, 2022
+1
lano-vargas commentedon Nov 21, 2023
I don't get it either, am I missing something ? it does mentioned in the blog they now support in 8.0: https://blog.nativescript.org/nativescript-8-announcement/#css%3A-box-shadow I have :
I've also added to my element in line style:

style="box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);"is this the case where only in CSS stylesheet perhaps is supported?UPDATE
It does seem to work under some circumstances I my case I found out that it show at the top but not a the bottom not sure why, also when I set borderBottomWidth="1" borderColor="black" then it doesn't work for me at all, but the same worked well for single label and buttons:
As you can see in the screenshoot the shadow only show at the top but only when I added and element above that:
Just to note I have a GridLayout bellow with RadListView.