6 - Inline Complex XML Resources
Channel: Styling Android
Date: 2021-02-01

We take a look at a feature of the Android build tools which enables us to define and XML resource inline within another XML resource. While this is not specific to Vector Drawable it can make life much easier by allowing us to keep all of the resources which comprise a VectorDrawable in a single XML file. It is possible to bloat our APK if we overuse this technique, and we'll also show why this is.