Skip to content

Units.dp and dp() function always gives the same value. #448

@arif193

Description

@arif193

i don't know if papyros handle qml-material for device screen yet, but it seems like that this issue is related to Qml core module after all, the Units.dp property and the dp() function always gives the same value = 1 for many screen types(xxhdpi, hdpi and so on..... ) , i wonder to know if anyone had already found a solution, and how, for me i've already tried to find if there is another type i can used but with no success, until now i've found one trick (i may call it a dirty one !) is by estimating the dp density using the height of the actual toolbar on the android phone, since it always equal to 24*dp, then divided it by 24, and using the new value to scale others elements to fit on the screen.

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