Skip to content

关于ShapeBuilder类配置常量优化的建议 #174

@magic0908

Description

@magic0908

感谢作者的开源库,不过我觉得有些地方的代码可以优化下。
ShapeBuilder里面的常量都是普通Int类型,比如定义android:shape,
代码setShapeType(shapeType: Int),因为参数是Int类型,有可能添加参数的时候会写成其他常量。就会引发问题。我觉得可以参考ViewCompat类,使用注解定义这些常量,将其分组,这样在使用的时候更加直观。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions