DisplayMetrics.DensityTv Field

Definition

Caution

This constant will be removed in the future version. Use Android.Util.DisplayMetricsDensity enum directly instead of this field.

This is a secondary density, added for some common screen configurations.

[Android.Runtime.Register("DENSITY_TV")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Util.DisplayMetricsDensity enum directly instead of this field.", true)]
public const Android.Util.DisplayMetricsDensity DensityTv = 213;
[<Android.Runtime.Register("DENSITY_TV")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Util.DisplayMetricsDensity enum directly instead of this field.", true)>]
val mutable DensityTv : Android.Util.DisplayMetricsDensity

Field Value

Value = 213
Attributes

Remarks

This is a secondary density, added for some common screen configurations. It is recommended that applications not generally target this as a first class density -- that is, don't supply specific graphics for this density, instead allow the platform to scale from other densities (typically #DENSITY_HIGH) as appropriate. In most cases (such as using bitmaps in android.graphics.drawable.Drawable) the platform can perform this scaling at load time, so the only cost is some slight startup runtime overhead.

This density was original introduced to correspond with a 720p TV screen: the density for 1080p televisions is #DENSITY_XHIGH, and the value here provides the same UI size for a TV running at 720p. It has also found use in 7" tablets, when these devices have 1280x720 displays.

Java documentation for android.util.DisplayMetrics.DENSITY_TV.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to