Top "Density-independent-pixel" questions

DIP is short for Density Independent Pixel.

Formula px to dp, dp to px android

I am trying to calculate a variable amount of pixels to density independent pixels and vice-versa. This formula (px to …

android formula density-independent-pixel
How to determine the screen width in terms of dp or dip at runtime in Android?

I need to code the layout of the android widgets using dip/dp (in java files). At runtime if I …

android density-independent-pixel
Does setWidth(int pixels) use dip or px?

Does setWidth(int pixels) use device independent pixel or physical pixel as unit? For example, does setWidth(100) set the a …

android width pixels units-of-measurement density-independent-pixel
How do dp, dip, dpi, ppi, pixels and inches relate?

I was reading dp, dip, px, sp measurements, but I still have some questions about dp/dpi vs ppi vs …

mobile user-interface pixels dpi density-independent-pixel
How to convert DP, PX, SP among each other, especially DP and SP?

I have known the difference among DP, SP and PX. And after searching this topic, I found nothing satisfying me …

android pixel density-independent-pixel
What is the correct way to specify dimensions in DIP from Java code?

I found that it is possible to set dimensions of my interface elements in XML layouts using DIPs as in …

android layout density-independent-pixel
How to calculate the pixel density (dp) of a device?

What is the independent pixel density for a Galaxy s4? I need it so I can have a qualifier sw???…

android resolution density-independent-pixel
How do you make layouts for several Android screen sizes?

I've done some research on building layouts that work for multiple screen sizes and I'm looking for some clarification. Is …

android layout density-independent-pixel
How to get Image DPI in PHP

I am searching for the code which could help me to get the Image DPI in PHP. Could any one …

php image density-independent-pixel
android Imageview layoutparams in dip?

I'm using the following code : ImageView i = new ImageView(mContext); i.setImageResource(mImageIds[position]); i.setScaleType(ImageView.ScaleType.FIT_XY); //…

android imageview density-independent-pixel