lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey
added in API level 1

Paint.Align

public static final enum Paint.Align
extends Enum<Paint.Align>

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


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)
static final Align[] values()

Inherited methods

Enum values

CENTER

added in API level 1
public static final Paint.Align CENTER

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

LEFT

added in API level 1
public static final Paint.Align LEFT

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

added in API level 1
public static final Paint.Align RIGHT

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

Public methods

valueOf

added in API level 1
public static Paint.Align valueOf (String name)

Parameters
name String

Returns
Paint.Align

values

added in API level 1
public static final Align[] values ()

Returns
Align[]