How to use shape to show special effect in Android
Today, the editor will share with you the relevant knowledge about how to use shape to show special effects in Android. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
The layout file used
The shape file used
Here, I will mainly talk about the functions of the items in the shape file.
Gradient mainly sets the background color gradient. StartColor is the start color value, endColor is the end color value, and 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, color is the border color
These are all the contents of this article entitled "how to use shape to show special effects in Android". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.