Shadow making method for Android programming

This paper describes the shadow making method of Android programming. Share with you for your reference, as follows:

First look at the operation effect diagram as follows:

Shadow making: including various shapes (rectangle, circle, etc.), as well as text, etc.

What is the principle of shadow making?

It's actually very simple. What you need to set shadow is regarded as a main layer. Then draw a shadow layer below the main layer.

Shadow making involves an important function:

Parameters:

Radius: Shadow radius

DX: offset in x-axis direction

Dy: offset in Y-axis direction

Color: Shadow Color

Note: if the radius is set to 0, it means to remove the shadow.

Specific implementation:

More readers interested in Android related content can view the special topics of this site: summary of Android graphics and image processing skills, introduction and advanced tutorial of Android development, summary of Android debugging skills and solutions to common problems, summary of Android multimedia operation skills (audio, video, recording, etc.), summary of Android basic component usage Summary of Android view skills, summary of Android layout skills and summary of Android control usage

I hope this article will help you in Android programming.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>