M Mike1970 Well-Known Member Licensed User Longtime User Mar 3, 2021 #1 Hi everyone, i was wondering if there is a way to apply a shadow (like elevation) to a view. At the moment i need to apply it on a edittext, is it possible? Thanks in advance
Hi everyone, i was wondering if there is a way to apply a shadow (like elevation) to a view. At the moment i need to apply it on a edittext, is it possible? Thanks in advance
mcqueccu Expert Licensed User Longtime User Mar 3, 2021 #2 I dont know direct answer to that... What I will do is put the edittext in a panel and apply the elevation to the panel Upvote 0
I dont know direct answer to that... What I will do is put the edittext in a panel and apply the elevation to the panel
M Mike1970 Well-Known Member Licensed User Longtime User Mar 4, 2021 #3 mcqueccu said: I dont know direct answer to that... What I will do is put the edittext in a panel and apply the elevation to the panel Click to expand... I tried with an elevation of 5, but i don't see nothing Upvote 0
mcqueccu said: I dont know direct answer to that... What I will do is put the edittext in a panel and apply the elevation to the panel Click to expand... I tried with an elevation of 5, but i don't see nothing
Peter Simpson Expert Licensed User Longtime User Mar 4, 2021 #4 Mike1970 said: I tried with an elevation of 5, but i don't see nothing Click to expand... EditText placed in a panel with the elevation set to 5 Attachments Shadow.zip Shadow.zip 9 KB · Views: 620 Upvote 0
Mike1970 said: I tried with an elevation of 5, but i don't see nothing Click to expand... EditText placed in a panel with the elevation set to 5
derez Expert Licensed User Longtime User Mar 4, 2021 #5 Its an old one but still works https://www.b4x.com/android/forum/threads/shadow.47887/post-297015 Upvote 0
M Mike1970 Well-Known Member Licensed User Longtime User Mar 4, 2021 #6 Peter Simpson said: EditText placed in a panel with the elevation set to 5 View attachment 109049 Click to expand... Uhm yes, ok.. i set the panel color to transparent because i stylize the edittext using .background and colordrawable as you can see it does not show up like so: Attachments TestShadow.zip TestShadow.zip 9.1 KB · Views: 598 Upvote 0
Peter Simpson said: EditText placed in a panel with the elevation set to 5 View attachment 109049 Click to expand... Uhm yes, ok.. i set the panel color to transparent because i stylize the edittext using .background and colordrawable as you can see it does not show up like so: