TypedArray.GetFloat(Int32, Single) 메서드

정의

var<index>/var<에서 >특성의 float 값을 검색합니다.

[Android.Runtime.Register("getFloat", "(IF)F", "GetGetFloat_IFHandler")]
public virtual float GetFloat(int index, float defValue);
[<Android.Runtime.Register("getFloat", "(IF)F", "GetGetFloat_IFHandler")>]
abstract member GetFloat : int * single -> single
override this.GetFloat : int * single -> single

매개 변수

index
Int32

검색할 특성의 인덱스입니다.

defValue
Single

특성이 정의되지 않았거나 float로 변환할 수 없는 경우 반환할 값입니다.

반품

특성 부동 소수 자릿수 값 또는 특성이 정의되지 않았거나 float로 강제 변환할 수 없는 경우 defValue입니다.

특성

예외

TypedArray가 이미 재활용되었으면 입니다.

설명

var<index>/var<에서 >특성의 float 값을 검색합니다.

특성이 부동 소수점 또는 정수가 아닌 경우 이 메서드는 을 사용하여 Float#parseFloat(String)부동 소수점까지 강제 변환하려고 시도합니다.

에 대한 android.content.res.TypedArray.getFloat(int, float)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상