Property value. For color properties (TEXT_COLOR / BACKGROUND_COLOR / PROGRESS_COLOR / SPINNER_DROPDOWN_BG_COLOR / SPINNER_DROPDOWN_TEXT_COLOR / SPINNER_SELECTED_TEXT_COLOR / SPINNER_ICON_COLOR), pass the decimal string of the color Int value, for example String.valueOf(Color.RED) or color.toString(). String formats such as "#RRGGBB" / "0xAARRGGBB" / "R.color.xxx" are not supported.
EditText keyboard input type enumeration, corresponding to the Android InputType constants. It determines the type of soft keyboard popped up and the input restrictions.
Supported since MSDK 5.20.1
Enum Members:
UNKNOWN
Unknown (default; uses the system default input type).
TEXT
Normal text input (default text keyboard).
TEXT_MULTI_LINE
Multi-line text input.
NUMBER
Integer number input (numeric keyboard).
NUMBER_DECIMAL
Numeric input with a decimal point.
NUMBER_SIGNED
Numeric input that can include a sign (plus or minus).
PHONE
Phone number input (dial pad keyboard).
EMAIL_ADDRESS
Email address input (text keyboard with the @ symbol).
PASSWORD
Password input (text content masked with dots).
NUMBER_PASSWORD
Numeric password input (numbers only, masked with dots).
The dialog already exists; do not add it repeatedly.
DIALOG_NOT_SUPPORTED_ON_CURRENT_PAGE
The current page does not support popping up a Dialog.
NO_SUCH_PARENT_VIEW_ID
The parent ID does not exist.
REMOTE_VIEWS_LIMIT_EXCEEDED
The RemoteView cache of the current page has reached its limit. Please call clearLayout(viewPageType) to fully clear the page before adding views again.
Remote view property enumeration (defines the types of view properties that can be dynamically modified).
Supported since MSDK 5.20.1
Enum Members:
UNKNOWN
Unknown property type (default value or undefined property).
TEXT
Text content property (applicable to text controls such as TextView / Button / EditText).
BACKGROUND_COLOR
Background color property (ARGB format color value).
WEB_VIEW_URL
WebView loading address (specifies the URL of the web page to render).
PROGRESS
Progress value property (sets the current progress percentage of components such as ProgressBar).
IMAGE
Image resource property (sets the bitmap or resource ID of an ImageView).
TEXT_SIZE
Text size (unit: sp).
TEXT_COLOR
Text color.
EDIT_TEXT_CURSOR_POSITION
Cursor position.
GRAVITY
Text alignment.
FONT_STYLE_TYPE
Font style enumeration.
SCALE_TYPE
Image fill mode.
VERTICAL_SCROLLABLE
Whether the text supports vertical scrolling. Effective only for TextView-type controls.
EDIT_TEXT_HINT
The hint text of the EditText.
EDIT_TEXT_GROUPING
EditText grouping.
SPINNER_ITEMS
Spinner item list (each item is separated using RemoteView.ITEMS_SEPARATOR).
SPINNER_SELECTED_INDEX
The index of the currently selected item in the spinner.
SPINNER_DROPDOWN_BG_COLOR
Background color of the dropdown list popup layer (ARGB format).
SPINNER_DROPDOWN_TEXT_COLOR
Font color of the dropdown list items (ARGB format).
CHECKED
The checked state (true / false) of a CompoundButton (CheckBox / Switch / ToggleButton). Effective only for CHECK_BOX / SWITCH / TOGGLE_BUTTON.
VISIBILITY
Control visibility (VISIBLE / INVISIBLE / GONE). Applicable to all controls.
ENABLED
Control enabled/disabled state (true / false). Applicable to all controls; once disabled, the control is non-interactive and shows a disabled style.
PADDING
Control padding, in the format "left,top,right,bottom" (unit dp). Applicable to all controls.
MAX_LINES
Maximum number of text lines to display (positive integer). Effective only for TEXT_VIEW / BUTTON / EDIT_TEXT.
ELLIPSIZE
Text truncation method, effective when maxLines is exceeded. The value uses the value string of the EllipsizeType enum. Effective only for TEXT_VIEW / BUTTON / EDIT_TEXT.
INPUT_TYPE
EditText keyboard input type (text / number / password / email, etc.). The value uses the value string of the InputType enum. Effective only for EDIT_TEXT.
MAX_LENGTH
Maximum number of input characters for the EditText (positive integer). Effective only for EDIT_TEXT.
PROGRESS_MAX
The maximum value of the ProgressBar (positive integer, default 100). Effective only for PROGRESS_BAR.
BACKGROUND_SHAPE
Background shape style. Applicable to all controls.
LIST_DATA
Full list data (JSON array format). Effective only for VERTICAL_LIST_VIEW.
LIST_INSERT_ITEM
Insert a single item of data into the list (JSON format, containing the position and item data). Effective only for VERTICAL_LIST_VIEW.
LIST_REMOVE_ITEM
Remove a single item of data from the list (the value is the position string). Effective only for VERTICAL_LIST_VIEW.
LIST_UPDATE_ITEM
Update a single item of data in the list (JSON format, containing the position and item data). Effective only for VERTICAL_LIST_VIEW.
LIST_DIVIDER_CONFIG
List divider configuration (JSON format, containing height/color/paddingLeft/paddingRight/showLastDivider). Effective only for VERTICAL_LIST_VIEW.
LIST_ITEM_CLICK_ENABLED
Whether the list item click event is enabled ("true"/"false"). Effective only for VERTICAL_LIST_VIEW.
PROGRESS_COLOR
Progress bar color (ARGB format integer). Effective only for progress bars.
PROGRESS_TEXT_SIZE
The center text size of the circular progress bar (unit: sp, positive integer). Effective only for CIRCULAR_PROGRESS_BAR.
PROGRESS_STATUS
Circular progress bar status (normal / success / failure). The value uses the value string of the ProgressStatusType enum. When in the SUCCESS / FAIL state, the center hides the text and shows the corresponding icon. Effective only for CIRCULAR_PROGRESS_BAR.
ALPHA
Control opacity (float, range 0.0 ~ 1.0; 0.0 is fully transparent, 1.0 is fully opaque). Applicable to all controls.
SINGLE_LINE
Single-line text mode ("true" / "false"). Effective only for TEXT_VIEW / BUTTON / EDIT_TEXT.
LINE_SPACING
Text line spacing, in JSON format {"extra":float,"multiplier":float}. extra is in dp (additional spacing), and multiplier is the line spacing multiple. Example: {"extra":4.0,"multiplier":1.2}. Effective only for TEXT_VIEW / BUTTON.
TEXT_DECORATION
Text decoration (underline, strikethrough). The value uses the value string of the TextDecorationType enum. Effective only for TEXT_VIEW / BUTTON.
HINT_TEXT_COLOR
EditText hint text color (ARGB format integer). Effective only for EDIT_TEXT.
SWITCH_THUMB_COLOR
Switch thumb color (ARGB format integer). Effective only for SWITCH.
SWITCH_TRACK_COLOR
Switch track color (ARGB format integer). Effective only for SWITCH.
CHECKBOX_TINT
CheckBox check box tint (ARGB format integer). Unchecked state: the border changes to the target color; checked state: both the border and fill change to the target color, and the check mark remains white. Effective only for CHECK_BOX.
MIN_SIZE
Control minimum size, in the format "minWidth,minHeight" (unit dp). Applicable to all controls.
LETTER_SPACING
Text letter spacing (float, unit em; e.g. 0.1 means adding 0.1em spacing between each character). Effective only for TEXT_VIEW / BUTTON.
IMAGE_TINT
ImageView image tint (ARGB format integer). Commonly used for icon color switching. Effective only for IMAGE_VIEW.
SPINNER_SELECTED_TEXT_COLOR
The text color of the currently selected item in the spinner (ARGB format).