Skip to content

Add best practices #8

@Miha-x64

Description

@Miha-x64

Hello. Nice DSL!

It would be better to add some best practices:
— Where one should keep drawables? At a use-site (e. g. Anko UI declaration), in extension functions, in application class?
— How and when one should reuse these drawables? (e. g., stateful drawables shouldn't be reused, or you may click one item and see ripple on the another one ;)

P. S. To avoid boxing, e. g., Float? in rectangleShape, you can use Float.NaN instead of null.

P. P. S. GradientDrawable.solidColor's getter should be @Deprecated(level = ERROR).

P. P. P. S. 80 methods

Thanks for your work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions