Android.Content.Res.Resources.GetFraction Method
Retrieve a fractional unit for a particular resource ID.

Syntax

[Android.Runtime.Register("getFraction", "(III)F", "GetGetFraction_IIIHandler")]
public virtual float GetFraction (int id, int base, int pbase)

Parameters

id
The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier.
base
The base value of this fraction. In other words, a standard fraction is multiplied by this value.
pbase
The parent base value of this fraction. In other words, a parent fraction (nn%p) is multiplied by this value.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
!:NoType:android/content/res/Resources$NotFoundException;Href=../../../../reference/android/content/res/Resources.NotFoundException.htmlThrows NotFoundException if the given ID does not exist.

Remarks

Retrieve a fractional unit for a particular resource ID.

[Android Documentation]

Requirements

Namespace: Android.Content.Res
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3