The style of a control includes many attributes, such as background, foreground (ImageView), appearance animation, disappearing animation, etc.
The files in the drawable folder are defined for a certain attribute. For example, if I want to define a red rounded rectangle background, I will write an xml file with a shape tag in the drawable folder. Then reference
via @drawable
The files in the style folder are defined for a certain type of control (a collection of several properties). There are generally two situations when defining in the style folder
It is necessary to repeatedly define a type of control. For example, if a large number of fade-in and fade-out effects are used in the APP, then the fade-in and fade-out effects will be defined as a style and referenced through @style
You need to modify the styles provided by the system, for example, change the color of Theme.Holo’s ActionBar to red, and leave everything else unchanged
The style of a control includes many attributes, such as background, foreground (ImageView), appearance animation, disappearing animation, etc.
The files in the drawable folder are defined for a certain attribute. For example, if I want to define a red rounded rectangle background, I will write an xml file with a shape tag in the drawable folder. Then reference
via @drawableThe files in the style folder are defined for a certain type of control (a collection of several properties). There are generally two situations when defining in the style folder