Title says it all, if I add image into ACToolBar background the shadow will be lost.
Image size doesn't matter. ACToolBar just seems to losing its properties like elevation after background change.
Has anyone found any solution for this? Changing elevation after background change doesn't do anything.
Didn't find any good solutions, so here is what I end up with.
B4X:
Sub CreateShadow (base As View, elevation As Int)
Dim c As Canvas
c.Initialize(base)
Dim shadow As GradientDrawable
Dim clrs(2) As Int
clrs(0) = Colors.Gray
clrs(1) = Colors.White
shadow.Initialize("TOP_BOTTOM", clrs)
Dim destRect As Rect
destRect.Initialize(0, base.Height - elevation, base.Width, base.Height)
c.DrawDrawable(shadow,destRect)
End Sub