Partager via


IFontScaleConverter.ConvertDpToSp(Single) Method

Definition

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

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

Parameters

dp
Single

Returns

Attributes

Remarks

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

Java documentation for android.content.res.FontScaleConverter.convertDpToSp(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