RenderNode.SetAmbientShadowColor(Color) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the color of the ambient shadow that is drawn when the RenderNode has a positive Z or
elevation value and is drawn inside of a Canvas#enableZ()
section.
[Android.Runtime.Register("setAmbientShadowColor", "(I)Z", "", ApiSince=29)]
public bool SetAmbientShadowColor (Android.Graphics.Color color);
[<Android.Runtime.Register("setAmbientShadowColor", "(I)Z", "", ApiSince=29)>]
member this.SetAmbientShadowColor : Android.Graphics.Color -> bool
Parameters
- color
- Color
The color this RenderNode will cast for its elevation shadow.
Returns
True if the value changed, false if the new value was the same as the previous value.
- Attributes
Remarks
Sets the color of the ambient shadow that is drawn when the RenderNode has a positive Z or elevation value and is drawn inside of a Canvas#enableZ()
section.
By default the shadow color is black. Generally, this color will be opaque so the intensity of the shadow is consistent between different RenderNodes with different colors.
The opacity of the final ambient shadow is a function of the shadow caster height, the alpha channel of the outlineAmbientShadowColor (typically opaque), and the android.R.attr#ambientShadowAlpha
theme attribute.
Java documentation for android.graphics.RenderNode.setAmbientShadowColor(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.