public abstract class ImagePlacementHandler
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ImagePlacementHandler.DefaultImagePlacementHandler
FIXME:
available height not used
|
Modifier and Type | Field and Description |
---|---|
static int |
ALIGN_CENTER |
static int |
ALIGN_END |
static int |
ALIGN_START |
static int |
DEFER |
static int |
EXCLUSIVE |
static int |
INLINE |
static int |
PLACEHOLDER |
static int |
SCROLLABLE |
static int |
THUMBNAIL |
Constructor and Description |
---|
ImagePlacementHandler() |
Modifier and Type | Method and Description |
---|---|
static android.text.Layout.Alignment |
getAlignment(int value) |
static boolean |
isNewLineAfter(int value) |
static boolean |
isNewLineBefore(int value) |
static boolean |
isWrapText(int value) |
abstract int |
place(android.text.style.DynamicDrawableSpan drawable,
int height,
int viewHeight,
int width,
int viewWidth,
int offset,
android.graphics.Point scale,
ContentView.Options options,
boolean allowDefer) |
public static final int THUMBNAIL
public static final int EXCLUSIVE
public static final int SCROLLABLE
public static final int ALIGN_CENTER
public static final int ALIGN_START
public static final int ALIGN_END
public static final int DEFER
public static final int PLACEHOLDER
public static final int INLINE
public abstract int place(android.text.style.DynamicDrawableSpan drawable, int height, int viewHeight, int width, int viewWidth, int offset, android.graphics.Point scale, ContentView.Options options, boolean allowDefer)
drawable
- - DynamicDrawableSpan to place in layoutheight
- - available height (or -1 if no limit)viewHeight
- - view height (if > -1 )width
- - available width (to end of line)viewWidth
- - view widthoffset
- - character position in text, given to TextLayoutscale
- - accept result 'size' of drawableoptions
- - ContentView.Optionspublic static boolean isNewLineBefore(int value)
public static boolean isNewLineAfter(int value)
public static boolean isWrapText(int value)
public static android.text.Layout.Alignment getAlignment(int value)