Android custom Chrysanthemum
1. Frame Animation
Define res/anim/loading. xml as follows:
Xmlns: android = "http://schemas.android.com/apk/res/android">
Reference the following in the layout file:
Android: layout_width = "wrap_content" android: layout_height = "wrap_content"
Android: indeterminate = "false" android: indeterminateDrawable = "@ anim/loading"/>
2. Use custom colors
Define res/drawable/dialog_style_xml_color.xml as follows:
Android: shorttx = "50%" android: shortty = "50%" android: fromDegrees = "0"
Android: toDegrees = "360">
Android: thicknessRatio = "8" android: useLevel = "false">
Android: startColor = "# FFFFFF" android: centerColor = "# FFDC35"
Android: centerY = "0.50" android: endColor = "# CE0000"/>
Reference the following in the layout file:
Android: layout_width = "wrap_content" android: layout_height = "wrap_content"
Android: indeterminate = "false" android: indeterminateDrawable = "@ drawable/dialog_style_xml_color"/>
3. By rotating an image definition
Define res/drawable/dialog_style_xml_icon.xml as follows:
Android: fromDegrees = "0.0" android: toDegrees = "360.0" android: Export Tx = "50.0%"
Android: Ty = "50.0%"/>