Android Question Panel Elevation

stevenindon

Active Member
Licensed User
Hello all,

I have been trying to make the intensity of Panel.elevation darker. I have been playing with the value :

Panel.elevation=10dip / 20dip etc.. but seems that the value is set for Higher / lower elevation... but not intensity of the shadow.

Any other way of achieving this? Android java code maybe?
 

stevenindon

Active Member
Licensed User
Thank you Blueforcer for your lightning response. After evaluating the link above, in B4A... the native code is still a normal elevating :


#Else If B4A
Offset = Offset * 2
View.As(JavaObject).RunMethod("setElevation", Array(Offset.As(Float)))

It is basically the same as Button.Elevation=4dip

The shadow darkness still cannot be controlled.. (*Needs a darker shadow)
 
Upvote 0

stevenindon

Active Member
Licensed User
Sorry all, I found the actual problem that makes the .elevate shadow gone missing is that :

If you have a elevated panel (Already with shadow)... and inside the panel, you have a image view (With an image), eventually this setup makes your panel elevated shadow gone missing. If i hide the image view, The shadow of the panel appears. (Panel width and height = Imageview width and height)

This is a little weird... Anyone? Need to solve this..šŸ˜“
 
Last edited:
Upvote 0
Top