Skip to content

Color resource names too general and conflict with client color names overriding them #96

@trinitron01

Description

@trinitron01

Colors declared in
https://github.com/Constructor-io/constructorio-client-android/blob/master/library/src/main/res/values/colors.xml

have no prefixes so they can conflict with colors declared in client apps (for example - primary is often declared in apps)
Therefore the colors from sdk override colors in the apps if they are accessed like here :
android:background="@color/primary"

Libraries and sdks should usually add some prefix to their colors or strings to distinguish them and prevent from conflicts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions