public class SpenSettingTextLayout extends LinearLayout
| Modifier and Type | Class and Description |
|---|---|
static interface |
SpenSettingTextLayout.ActionListener
Deprecated.
|
static interface |
SpenSettingTextLayout.ViewListener
Listeners to inform View visibility changed
|
| Modifier and Type | Field and Description |
|---|---|
static int |
VIEW_MODE_COLOR
Deprecated.
|
static int |
VIEW_MODE_MINIMUM
Deprecated.
|
static int |
VIEW_MODE_MINIMUM_WITHOUT_PREVIEW
Deprecated.
|
static int |
VIEW_MODE_NORMAL
Deprecated.
|
static int |
VIEW_MODE_PARAGRAPH
Deprecated.
|
static int |
VIEW_MODE_STYLE
Deprecated.
|
static int |
VIEW_MODE_TITLE
Deprecated.
|
| Constructor and Description |
|---|
SpenSettingTextLayout(Context context)
Creates an SpenSettingTextLayout instance with the specified XML attributes.
|
SpenSettingTextLayout(Context context,
AttributeSet attrs)
Creates an SpenSettingTextLayout instance with the specified XML attributes.
|
SpenSettingTextLayout(Context context,
AttributeSet attrs,
int defStyle)
Creates an SpenSettingTextLayout instance with the specified XML attributes.
|
SpenSettingTextLayout(Context context,
String customImagePath,
HashMap<String,String> fontName,
RelativeLayout relativeLayout)
Text Setting Layout does not support (RTL) Right To Left mirroring, therefore, please set layout
direction View.LAYOUT_DIRECTION_LTR for its parent view so that SDK can have normal display and operation.
Creates an SpenSettingTextLayout instance with the specified image path, font name, and relative layout. |
SpenSettingTextLayout(Context context,
String customImagePath,
HashMap<String,String> fontName,
RelativeLayout relativeLayout,
float ratio)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the Settings UI.
|
SpenSettingTextInfo |
getInfo()
Get the text settings information.
|
int |
getViewMode()
Deprecated.
|
void |
initialize(String customImagePath,
HashMap<String,String> fontName,
RelativeLayout relativeLayout)
Initialize a SpenSettingTextLayout with the specified image path, font name, relative layout.
it must be called when ONLY SpenSettingTextLayout instance with the specified XML attributes is used. |
void |
setActionListener(SpenSettingTextLayout.ActionListener listener)
Deprecated.
|
void |
setCanvasView(SpenSettingViewInterface canvasView)
Set the specified canvas view.
|
void |
setColorSpoidPosition(int x,
int y)
Set the specified position for the popup color picker.
|
void |
setIndicatorPosition(int position)
Deprecated.
|
void |
setInfo(SpenSettingTextInfo settingInfo)
Set the specified text settings information.
|
void |
setPosition(int x,
int y)
Deprecated.
|
void |
setViewMode(int viewMode)
Deprecated.
|
void |
setVisibility(int visibility)
Set the specified visibility mode for the text settings view.
|
void |
setVisibilityChangedListener(SpenSettingTextLayout.ViewListener listener)
Set the specified SpenSettingTextLayout.ViewListener to receive
visibility changed events.
|
@Deprecated public static final int VIEW_MODE_NORMAL
@Deprecated public static final int VIEW_MODE_MINIMUM
@Deprecated public static final int VIEW_MODE_MINIMUM_WITHOUT_PREVIEW
@Deprecated public static final int VIEW_MODE_STYLE
@Deprecated public static final int VIEW_MODE_COLOR
@Deprecated public static final int VIEW_MODE_PARAGRAPH
@Deprecated public static final int VIEW_MODE_TITLE
public SpenSettingTextLayout(Context context)
context - The Context for your application.NullPointerException - If the context is null.public SpenSettingTextLayout(Context context, AttributeSet attrs)
context - The Context for your application.attrs - The XML attributes for the view.NullPointerException - If the context is null.public SpenSettingTextLayout(Context context, AttributeSet attrs, int defStyle)
context - The Context for your application.attrs - The XML attributes for the view.defStyle - The default style to apply to this view.
Set to 0 to apply no style beyond what is included in the theme.
This can be an attribute resource value retrieved from the current theme or an explicit style
resource.NullPointerException - If the context is null.public SpenSettingTextLayout(Context context, String customImagePath, HashMap<String,String> fontName, RelativeLayout relativeLayout)
The following parameters must be not null.
context - [in] The Context for application.customImagePath - [in] The path to the image you want to use internally
(String).fontName - [in] The font list.relativeLayout - [in] The upper of the Layout.NullPointerException - If input parameter is null.@Deprecated public SpenSettingTextLayout(Context context, String customImagePath, HashMap<String,String> fontName, RelativeLayout relativeLayout, float ratio)
SpenSettingTextLayout(Context, String, HashMap, RelativeLayout).public void initialize(String customImagePath, HashMap<String,String> fontName, RelativeLayout relativeLayout)
customImagePath - [in] The path to the image you want to use internally
(String).fontName - [in] The font list.relativeLayout - [in] The upper of the Layout.NullPointerException - If input parameter is null.public void close()
@Deprecated public void setIndicatorPosition(int position)
@Deprecated public void setPosition(int x, int y)
public void setColorSpoidPosition(int x,
int y)
x - The X coordinate of the popup color picker in pixels.y - The Y coordinate of the popup color picker in pixels.@Deprecated public int getViewMode()
@Deprecated public void setViewMode(int viewMode)
public SpenSettingTextInfo getInfo()
public void setInfo(SpenSettingTextInfo settingInfo)
settingInfo - The text settings information object.
@Deprecated public void setActionListener(SpenSettingTextLayout.ActionListener listener)
public void setVisibilityChangedListener(SpenSettingTextLayout.ViewListener listener)
listener - The SpenSettingTextLayout.ViewListener instance to receive
visibility changed events . SpenSettingTextLayout.ViewListenerpublic void setCanvasView(SpenSettingViewInterface canvasView)
canvasView - The canvas view.public void setVisibility(int visibility)
setVisibility in class Viewvisibility - The visibility mode.