Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.

Cardview radius working differently for big screen resolutionsΒ #104

@mpniewski

Description

@mpniewski

I'm using cardview as background for company logos in my app and so I have them in a shape of a circle. Now I set height="80" width="80" radius="40" to get the desired shape and this solution, as expected, works well for small screen resolutions.

For bigger screens, the above parameters yield a square with rounded corners. The problem is fixed when radius is set to "80" (i.e. that produces a circle again) which is of course illogical.

After playing around with the parameters in css I think there might be an issue with correct px -> dpi conversions. Setting the size to 80 produces an element of size 160px but setting radius to 40 still produces a border-radius of 40px.

Anyone else getting the same issues?

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