Resources.GetDimensionPixelOffset(Int32) Resources.GetDimensionPixelOffset(Int32) Method

Definition

Retrieve a dimensional for a particular resource ID for use as an offset in raw pixels.

[Android.Runtime.Register("getDimensionPixelOffset", "(I)I", "GetGetDimensionPixelOffset_IHandler")]
public virtual int GetDimensionPixelOffset (int id);
abstract member GetDimensionPixelOffset : int -> int
override this.GetDimensionPixelOffset : int -> int

Parameters

id
Int32 Int32

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.

Returns

Exceptions

Throws NotFoundException if the given ID does not exist.

Remarks

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

See also