Skip to content

dpToPx converter in CarouselPicker.java class #18

@davidhowe

Description

@davidhowe

Consider changing your dpToPx conversion to Math.round(dp * (displayMetrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT)). You are using displayMetrics.xdpi inplace of the device true densityDpi. This had big consequences for us across different devices such as Samsung S9+

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