Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static final enum

Paint.Align

extends Enum <E extends  Enum <E>>
java.lang.Object
   ↳ java.lang.Enum <E extends  java.lang.Enum <E>>
     ↳ android.graphics.Paint.Align

Class Overview

Align specifies how drawText aligns its text relative to the [x,y] coordinates. The default is LEFT.

Summary

Enum Values
Paint.Align   CENTER  The text is drawn centered horizontally on the x,y origin  
Paint.Align   LEFT  The text is drawn to the right of the x,y origin  
Paint.Align   RIGHT  The text is drawn to the left of the x,y origin  
Public Methods
static Paint.Align valueOf ( String name)
final static Align[] values ()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final Paint.Align CENTER

Added in API level 1

The text is drawn centered horizontally on the x,y origin

public static final Paint.Align LEFT

Added in API level 1

The text is drawn to the right of the x,y origin

public static final Paint.Align RIGHT

Added in API level 1

The text is drawn to the left of the x,y origin

Public Methods

public static Paint.Align valueOf ( String name)

Added in API level 1

public static final Align[] values ()

Added in API level 1