avianey / androidsvgdrawable-plugin

Gradle plugin that generates qualified, density specific PNG drawables from SVG files at build time for your Android projects.
Apache License 2.0
262 stars 29 forks source link

Check NinePatch qualifier filtering #8

Closed avianey closed 10 years ago

avianey commented 10 years ago

Should ninepatch qualifiers contains all svg qualifiers or vice versa ?

avianey commented 10 years ago

A NinePatch configuration element containing qualifier values applies only to SVG input files that have all of the NinePatch qualifier values.

[
    {   // nine patch config 1
        "name" : "name",  
        "qualifiers" : ["land", "xlarge"], 
        "stretch" : {/* whatever */},
        "content" : {/* whatever */}
    },
    {
        // nine patch config 2
        "name" : "name",  
        "qualifiers" : ["land", "xlarge", "fr"], 
        "stretch" : {/* whatever */},
        "content" : {/* whatever */}
    }
]

config 1 is used for :

config 2 is used for :

none of the config is used for :