You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi,
i'm using awesome sdp library in my apps, but i need your help!
i found no way to contact you, that's why i posted here.
i want to convert dp to pixel or pixel to dp programmatically but the result is not good!
i tried different ways but none of these codes results is not like sdp library.
float px = dp * (metrics.densityDpi / metrics.DENSITY_DEFAULT);
or
float px = dp * getResources().getDisplayMetrics().density; + 0.5f;
....
can you help me?
many thanks
The text was updated successfully, but these errors were encountered:
hi,
i'm using awesome sdp library in my apps, but i need your help!
i found no way to contact you, that's why i posted here.
i want to convert dp to pixel or pixel to dp programmatically but the result is not good!
i tried different ways but none of these codes results is not like sdp library.
float px = dp * (metrics.densityDpi / metrics.DENSITY_DEFAULT);
or
float px = dp * getResources().getDisplayMetrics().density; + 0.5f;
....
can you help me?
many thanks
The text was updated successfully, but these errors were encountered: