Android uses shape to make components present special effects

This article illustrates how Android uses shape to make components present special effects. Share with you for your reference, as follows:

Layout file used

Used shape file

Here we mainly talk about the functions of each item in the shape file

Gradient mainly sets the background color gradient. Startcolor is the start color value, endcolor is the end color value, angle is the gradient angle. Padding mainly sets the distance between the content in the component and the inner border of the component. Stroke mainly sets the border of the component. Width is the border width and color is the border color

More readers interested in Android related content can view the special topics of this site: introduction and advanced tutorial of Android development, summary of Android layout skills, summary of Android view skills, summary of activity operation skills of Android programming, summary of Android operation JSON format data skills, summary of Android resource operation skills, and Android control usage summary

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
分享
二维码
< <上一篇
下一篇>>