Represent gauge view.
Definition
public class GaugeView : View
Summary
The following table summarizes the members exposed in this class.
Public Constructors
GaugeView Constructor(Context) | Initializes a new instance of the GaugeView class. |
GaugeView Constructor(Context, IAttributeSet) | Initializes a new instance of the GaugeView class. |
Public Methods
GetTextAscent(Font) | Gets the text ascent. |
GetTextHeight(Font) | Gets the height of the text. |
GetTextWidth(string, Font) | Gets the width of the text. |
Protected Methods
OnDraw(Canvas) | Called when [draw]. |
Public Constructors
public GaugeView(Context context)
Initializes a new instance of the GaugeView class.
Parameters
context | The context. |
public GaugeView(Context context, IAttributeSet attrs)
Initializes a new instance of the GaugeView class.
Parameters
context | The context. |
attrs | The attrs. |
Public Methods
public int GetTextWidth(string text, Font font)
Gets the width of the text.
Parameters
text | The text. |
font | The font. |
Protected Methods
protected void OnDraw(Canvas canvas)
Called when [draw].
Parameters
canvas | The canvas. |