Language

IFontScaleConverter.ConvertSpToDp(Single) Method

Definition

Converts a dimension in "sp" to "dp".

[Android.Runtime.Register("convertSpToDp", "(F)F", "GetConvertSpToDp_FHandler:Android.Content.Res.IFontScaleConverterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)]
public float ConvertSpToDp(float sp);
[<Android.Runtime.Register("convertSpToDp", "(F)F", "GetConvertSpToDp_FHandler:Android.Content.Res.IFontScaleConverterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)>]
abstract member ConvertSpToDp : single -> single

Parameters

sp
Single

The dimension in scale-independent pixels.

Returns

The equivalent dimension in density-independent pixels.

Attributes

Remarks

Converts a dimension in "sp" to "dp".

Java documentation for android.content.res.FontScaleConverter.convertSpToDp(float).

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