public final class UIViewContentMode extends Object
Modifier and Type | Field and Description |
---|---|
static int |
Bottom
Center the content aligned at the bottom.
|
static int |
BottomLeft
Align the content in the bottom-left.
|
static int |
BottomRight
Align the content in the bottom-right corner.
|
static int |
Center
Center the content and keep the proportions the same.
|
static int |
Left
Align the content on the left of the view.
|
static int |
Redraw
Redisplay the view when the bounds change by invoking the setNeedsDisplay
method.
|
static int |
Right
Align the content on the right.
|
static int |
ScaleAspectFill
Scale the content to fill the view.
|
static int |
ScaleAspectFit
Scale the content to fit the view, maintaining the aspect ratio and any
remaining area of the view is transparent.
|
static int |
ScaleToFill
Scale the content to fit and change the aspect ratio of the content if
needed.
|
static int |
Top
Center the content aligned at the top.
|
static int |
TopLeft
Align the content in the top-left.
|
static int |
TopRight
Align the content in the top-right.
|
public static final int ScaleToFill
public static final int ScaleAspectFit
public static final int ScaleAspectFill
public static final int Redraw
public static final int Center
public static final int Top
public static final int Bottom
public static final int Left
public static final int Right
public static final int TopLeft
public static final int TopRight
public static final int BottomLeft
public static final int BottomRight
Copyright © 2020. All rights reserved.