setTargetDensity
Set the density scale at which this drawable will be rendered. This method assumes the drawable will be rendered at the same density as the specified canvas.
Parameters
canvas
The Canvas from which the density scale must be obtained.
See also
Set the density scale at which this drawable will be rendered.
Parameters
metrics
The DisplayMetrics indicating the density scale for this drawable.
See also
Set the density at which this drawable will be rendered.
Parameters
density
The density scale for this drawable.