How does density value calculate in android -


can explain me formula android use calculate screen density? waiting responds)))

density can calculated following formula:

density = sqrt((wp * wp) + (hp * hp)) / di 

where:

wp width resolution in pixels,

hp height resolution in pixels, and

di diagonal size in inches.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -