Core UI
The Webex Connect UI SDK for Android builds on the message transport capabilities exposed within the Core SDK through a collection of customizable user interface components. These components may be used to easily integrate a fully-featured rich messaging capability within a host application.
This document serves as a reference and details all of the public classes, interfaces, and methods.
New Classes and APIs are added to UI SDK to support message transport capabilities within the Core SDK through a collection of customizable user interface components
The details of all of the public classes, interfaces, and methods are available in the sections that follow. Also, see the Quick Start Guide.
Packages
The following table lists all the packages along with their descriptions:
Package | Description |
---|---|
com.imimobile.connect.ui | The root-level package; contains base UI and SDK, initialization classes. |
The following packages have the root package name removed for brevity. | |
.conversation | Contains UI components for displaying and interacting within a conversation |
.conversation.composer | Contains classes used to display a message composer UI. |
.conversation.composer.plugins | It contains plugin classes use to support attachments within the composer. |
.conversation.fragments | It contains pre-built fragments for displaying a conversation and conversations list. |
.data | Contains data classes |
.data.messagepart | Contains data classes that represent parts of a message |
.enums | Contains enumerations |
.inbox | Contains classes used to display messages in an inbox style UI |
.interfaces | Contains various interfaces |
.utils | Contains utility classes |
.views.partviews | Contains base UI classes used to display message parts. |
.views.partviews.location | It contains UI classes for displaying location attachments. |
.views.partviews.media | It contains a base UI class for displaying media attachments. |
.views.partviews.media.audio | It contains UI classes for displaying audio attachments. |
.views.partviews.media.file | It contains UI classes for displaying arbitrary file attachments. |
.views.partviews.media.image | It contains UI classes for displaying image attachments. |
.views.partviews.media.video | It contains UI classes for displaying video attachments. |
.views.partviews.text | It contains UI classes for displaying the textual parts of a message. |
.views.partviews.url | It contains UI classes for displaying URL attachments. |
com.imimobile.connect.ui
Classes | Interfaces |
---|---|
- imiconnectUI - ICUIConfig - ICMessageViewStyle - ICMessageRecyclerView - ICMessageViewHolder - ICMessageViewFactory - ICMessageGroupHeaderViewHolder - ICMessageDataProvider | - ICMessageRecyclerView.ICMessageClickListener - ICMessageRecyclerView.ICMessageMenuHandler |
imiconnectUI
This class handles the initialization of the SDK.
Public Methods | |
---|---|
void | startup |
void | shutdown |
boolean | isStarted |
String | getSDKVersion |
startup
This method initializes the SDK for use. This variant must be called to initialize the SDK before any other features may be used.
Syntax: void startup(android.content.Context context, ICUIConfig config, ICUIStartupCallback callback)
Parameters:
Parameter | Type | Description |
---|---|---|
context | content.Context | A valid Application Context |
config | ICUIConfig | A valid ICUIConfig instance which configures aspects of the SDK startup |
callback | ICUIStartupCallback | Used to notify startup success, may be null |
Note:
When using download at runtime Emoji support, you should always implement the callback and use UI components until startup is complete.
shutdown
This method provides a means to shut down the SDK and performs cleanup, after this method is called, none of the SDK features will work
Syntax: void shutdown(com.imimobile.connect.core.callbacks.ICShutdownCallback callback)
Parameters:
Parameter | Type | Description |
---|---|---|
callback | com.imimobile.connect.core.callbacks.ICShutdownCallback | Used to notify shutdown success, may be null |
isStarted
This method is used to verify whether the SDK has started or not.
Syntax: boolean isStarted()
Return value: Returns a value to indicate whether the SDK is started or not.
getSDKVersion
This method is used to retrieves/check the SDK build version.
Syntax: String getSDKVersion()
Return value: Returns the SDK build version.
ICUIConfig
This class represents the methods for SDK configuration.
ICUIConfig (Constructor)
This method is used to initialize an ICUIConfig instance with a fileProviderAuthority.
Syntax: ICUIConfig(@NonNull String fileProviderAuthority)
Parameters:
Parameter | Type | Description |
---|---|---|
fileProviderAuthority | String | file provider Authority |
Public Methods | |
---|---|
boolean | isDownloadEmoji() |
void | setDownloadEmoji(boolean downloadEmoji) |
String | getfileproviderauthority() |
isDownloadEmoji
This method is used to verify the download Emoji value, true or false.
Syntax: boolean isDownloadEmoji()
Return value: Returns true if Emoji download is true, false otherwise.
setDownloadEmoji
This method is used to set the download Emoji value.
Syntax: void setDownloadEmoji(boolean downloadEmoji)
Parameters:
Parameter | Type | Description |
---|---|---|
downloadEmoji | Boolean | Set the value of downloadEmoji |
getFileProviderAuthority
This method returns FileProviderAuthority.
Syntax: String getFileProviderAuthority()
Return value: Returns the FileProviderAuthority.
ICMessageViewStyle
This class provides style attributes that are utilized by ICInboxRecyclerView
and ICConversationRecyclerView
for customization of individual message view components.
setBackgroundResource
This method sets the message background resource id.
Syntax: void setBackgroundResource(int resId)
Parameters:
Parameter | Type | Description |
---|---|---|
resId | Int | background resource id for message |
setTextColor
This method sets the message text color.
Syntax: void setTextColor(int color)
Parameters:
Parameter | Type | Description |
---|---|---|
color | int | color of message text |
setTextLinkColor
This method sets the message text link color.
Syntax: void setTextLinkColor(int textLinkColor)
Parameters:
Parameter | Type | Description |
---|---|---|
textLinkColor | int | text link color |
setTextSize
This method sets the message text size.
Syntax: void setTextSize(float size)
Parameters:
Parameter | Type | Description |
---|---|---|
size | float | Size of the text |
setTextTypeface
This method sets the message text typeface.
Syntax: void setTextTypeface(Typeface typeface)
Parameters:
Parameter | Type | Description |
---|---|---|
typeface | android.graphics.Typeface | typeface of message text |
setMargin
This method sets the message margin.
Syntax: void setMargin(int left, int right)
Parameters:
Parameter | Type | Description |
---|---|---|
left | int | Left margin of message |
right | int | Right margin of message |
setGravity
This method sets the message gravity.
Syntax: void setGravity(int gravity)
Parameters:
Parameter | Type | Description |
---|---|---|
gravity | int | gravity for message |
getGravity
This method sets the message gravity.
Syntax: getGravity()
Return value: Returns gravity for message.
getBackgroundResource
This method is used to get the Background resource Id for the message.
Syntax: int getBackgroundResource()
Returns value: Returns background resource Id for the message.
getTextColor
This method is used to get the text color for the message.
Syntax: int getTextColor()
Return value: Returns the message text color value in the form of 0xAARRGGBB
.
getTextLinkColor
This method is used to get the Text link color for the message.
Syntax: int getTextLinkColor()
Return value: Return message text link color value in the form of 0xAARRGGBB
getTextSize
This method is used to get the Text Size for the message.
Syntax: float getTextSize()
Return value: returns text size for Message
getTextTypeface
This method is used to get the Text typeface for message.
Syntax: Typeface getTextTypeface()
Return value: Returns text typeface for Message. Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2)
getMarginLeft
This method is used to get the margin Left for the message.
Syntax: int getMarginLeft()
Return value: Returns margin left value for message
getMarginRight
This method is used to get the margin-right for the message.
Syntax: int getMarginLeft()
Return value: Returns margin right value for message
getCornerRadius
This method is used to get the Corner radius for the message.
Syntax: int getCornerRadius()
Return value: Returns Corner radius value for message
setCornerRadius
This method set the Corner radius value
Syntax: int getCornerRadius()
Parameters:
Parameter | Type | Description |
---|---|---|
cornerRadius | int | Corner radius value for message |
getBackgroundColor
This method is used to get the background color for the message.
Syntax: getBackgroundColor()
Return value:** Returns background color for message
setBackgroundColor
This method sets the background color for the message.
Syntax: void setBackgroundColor(int backgroundColor)
Parameters:
Parameter | Type | Description |
---|---|---|
backgroundColor | int | background color for message |
getTimeTextSize
This method is used to get the Time Text size for the message.
Syntax: int getTimeTextSize()
Return value: Returns Time Text size value for message
setTimeTextSize
This method sets Time Text size for the message
Syntax: void setTimeTextSize(int timeTextSize)
Parameters:
Parameter | Type | Description |
---|---|---|
timeTextSize | int | Time Text size value for message |
getTimeTextColor
This method is used to get the Time Text Color for the message.
Syntax: int getTimeTextColor()
Return value: Returns Time Text Color value for message in the form of 0xAARRGGBB
setTimeTextColor
This method sets the Time Text color for message.
Syntax: void setTimeTextColor(int timeTextColor)
Parameters:
Parameter | Type | Description |
---|---|---|
timeTextColor | int | Time Text color value for message in the form of 0xAARRGGBB |
getAvatarWidth
Syntax: public int getAvatarWidth()
This method used to get the Avatar width
Returns : Avatar width
getAvatarHeight
Syntax: public int getAvatarHeight()
This method used to get the Avatar Height
Returns : Avatar Height
setAvatarSize
Syntax: public void setAvatarSize(int width, int height)
This method used to set the Avatar width and Height
Parameters:
Parameter | Description |
---|---|
width | avatar width |
height | avatar height |
getAvatarScaleType
Syntax: public ImageView.ScaleType getAvatarScaleType()
This method used to get the Avatar scaleType
Returns : Avatar scale type
setAvatarScaleType
Syntax: public void setAvatarScaleType(ImageView.ScaleType scaleType)
This method used to set the Avatar image scale type
Parameters: scaleType - avatar scale Type
ICMessageRecyclerView
This class has the responsibility to obtain its data through ICMessageDataProvider and uses ICMessageViewHolder instances to display the data.
Public Constructors |
---|
public ICMessageRecyclerView(Context context) |
public ICMessageRecyclerView(Context context,AttributeSet attrs) |
public ICMessageRecyclerView(Context context,AttributeSet attrs,int defStyle) |
createMessageAdapter
This method is used to create a message Adapter instance.
Syntax: protected ICMessageRecyclerView.MessageAdapter createMessageAdapter()
Return value: returns message adapter
init
This method is used to Initialize the message recycler View
Syntax: protected void init()
setMessageMenuHandler
This method sets an object which implements ICMessageMenuHandler interface to listen menu build and menu Item click callbacks
Syntax: void setMessageMenuHandler(ICMessageRecyclerView.ICMessageMenuHandler menuBuilder)
Parameters:
Parameter | Type | Description |
---|---|---|
menuBuilder | ICMessageRecyclerView.ICMessageMenuHandler | menu handler listener |
createPopupMenu
protected android.support.v7.widget.PopupMenu createPopupMenu(int adapterPosition,
ICMessageViewHolder holder)
registerMessageClickListener
public void registerMessageClickListener(ICMessageRecyclerView.ICMessageClickListener)
This method allows registering an object which implements the
ICMessageClickListener interface to listen for Message click listener.
Parameters:
listener - message click Listener
unregisterMessageClickListener
public void unregisterMessageClickListener(ICMessageRecyclerView.ICMessageClickListener)
This method allows unregistering a previously registered object which implements
the ICMessageClickListener interface, to stop listening for Message
click listener.
Parameters:
listener - message click Listener
setAdapter
public void setAdapter(android.support.v7.widget.RecyclerView.Adapter adapter)
Overrides:
setAdapter in class android.support.v7.widget.RecyclerView
onVisibilityChanged
protected void onVisibilityChanged(View changedView,
int visibility)
Automatically refresh on resume
Overrides:
onVisibilityChanged in class View
refresh
public void refresh()
This method refreshes this adapter based on data set changed
registerPartViewFactories
public void registerPartViewFactories(ICMessagePartViewFactory[] factories)
This method register partView factories to be handled by this message Recycler
View
Parameters:
factories - Array of partView factories to be registered
unregisterPartViewFactories
public void unregisterPartViewFactories(ICMessagePartViewFactory[] factories)
This method unregister partView factories for this message Recycler View
Parameters:
factories - Array of partView factories to be registered
setMessageProvider
public void setMessageProvider(T provider) throws ICException
This method sets message provider which implements ICMessageDataProvider
Parameters:
provider - message data provider
Throws:
com.imimobile.connect.core.exception.ICException
getMessageProvider
public T getMessageProvider()
This method returns message data provider
Return:
returns the message data provider
setMessageViewFactory
public void setMessageViewFactory(ICMessageViewFactory<[V]> factory)
This method sets Message View factory object which inherits from
ICMessageViewFactory
Parameters:
factory – messageViewFactory
setMessageViewStyle - Deprecated
public void setMessageViewStyle(ICMessageViewStyle myStyle, ICMessageViewStyle theirStyle)
This method sets message view styles for my Messages and Their Messages
Parameters:
myStyle - my message style
theirStyle - their Message style
setUnreadMessageViewStyle - Deprecated
public void setUnreadMessageViewStyle(ICMessageViewStyle unreadStyle)
This method sets message view style for unRead Messages
Parameters:
unreadStyle - unRead message style
setAlertMessageViewStyle - Deprecated
public void setAlertMessageViewStyle(ICMessageViewStyle style)
This method sets alert message view style
Parameters:
style - Alert Message style
setAvatars
public void setAvatars(Bitmap myAvatar, Bitmap theirAvatar)
This method set an avatar for my Message and Their Message
Parameters:
myAvatar - avatar for my message
theirAvatar - avatar for their message
getMyMessageViewStyle - Deprecated
protected ICMessageViewStyle getMyMessageViewStyle()
This method returns my message view style
Return:
returns my message view style
getTheirMessageViewStyle - Deprecated
protected ICMessageViewStyle getTheirMessageViewStyle()
This method returns its message view style.
Return:
returns their message view style
getUnreadMessageViewStyle - Deprecated
protected ICMessageViewStyle getUnreadMessageViewStyle()
This method returns the unread message view style.
Return:
returns Unread message view style
getAlertMessageViewStyle - Deprecated
protected ICMessageViewStyle getAlertMessageViewStyle()
This method returns the alert message view style.
Return:
returns Alert message view style
ICMessageViewHolder
This abstract class binds the ICMessageData
and applies the ICMessageViewStyle
to message views.
Public Methods | |
---|---|
void | bindAvatar(Bitmap avatar) |
void | bindMessage(ICMessageData messageData, ICMessagePart[] messageParts) |
void | setMessageViewStyle(ICMessageViewStyle style) |
ICMessagePartContainerViewHolder | getPartContainerViewHolder() |
View | getView() |
bindAvatar
This method binds the avatar to the message view holder.
Syntax: void bindAvatar(Bitmap avatar)
Parameters:
Parameter | type | Description |
---|---|---|
avatar | bitmap | avatar bitmap |
bindMessage
This method binds message parts to the respective message part view holder.
Syntax: void bindMessage(ICMessageData messageData, ICMessagePart[] messageParts)
Parameters:
Parameter | type | Description |
---|---|---|
messageData | com.imimobile.connect.core.messaging.ICMessageData messageData | ICMessageData |
messageParts | com.imimobile.connect.core.messaging.ICMessageData messageData | an array of message parts |
setMessageViewStyle
This method sets the message view style to message view holder.
Syntax: void setMessageViewStyle(ICMessageViewStyle style)
Parameters:
Parameter | type | Description |
---|---|---|
style | ICMessageViewStyle | Message view style |
getPartContainerViewHolder
This method returns the message part container view holder.
Syntax: abstract ICMessagePartContainerViewHolder getPartContainerViewHolder()
Return value: Returns message part container view holder
getPartContainerViewHolder
This method returns the message view holder.
Syntax: android.view.View getView()
Return value: Returns a view object for message view holder.
ICMessageViewFactory
This factory has the responsibility to create all the message views that will be displayed in the conversation.
getMessageGroupHeaderViewType
This method used to get message Group Header View type
Syntax: long getMessageGroupHeaderViewType(ICMessageGroup group)
Parameters:
Parameter | Type | Description |
---|---|---|
group | ICMessageGroup | message group |
Return value: Returns message Group Header View type
createMessageGroupHeaderView
This method is used to create the message group header view holder.
Syntax: abstract ICMessageGroupHeaderViewHolder createMessageGroupHeaderView(android.view.ViewGroup parent, long viewType)
Parameters:
Parameter | Type | Description |
---|---|---|
parent | android.view.ViewGroup | parent viewgroup |
viewType | long | view type |
Return value: Returns Message group Header View holder object.
getMessageViewIdentifier
This method is used to get the message view identifier based on message parts and factory map.
Syntax: getMessageViewIdentifier(ICMessageData messageData, ICMessagePart[] messageParts, java.util.Map<String,ICMessagePartViewFactory> factoryMap)
Parameters:
Parameter | Type | Description |
---|---|---|
messageData | ICMessageData | message data from adapter position |
messageParts | ICMessagePart[] | message parts from data provider |
factoryMap | java.util.Map<String,ICMessagePartViewFactory> | message partview factory map |
Return value: Returns the message Group Header View type.
createMessageView
This method is used to create a message view holder.
Syntax: createMessageView(android.view.ViewGroup parent, String identifier, java.util.List<ICMessagePartViewFactory> factoryList)
Parameters:
Parameter | Type | Description |
---|---|---|
parent | android.view.ViewGroup | parent view group |
identifier | String | message view identifier |
factoryList | List | message part view factory list |
Return value: Returns created message view holder.
createPartViews
This method is used to create part views. Message part views are added to the message part container view holder.
Syntax: createPartViews(ICMessageViewHolder<T> messageViewHolder, String identifier,java.util.List<ICMessagePartViewFactory> factoryList)
Parameters:
Parameter | Type | Description |
---|---|---|
messageViewHolder | ICMessageViewHolder | implementation of message view holder |
identifier | String | message view identifier |
factoryList | ICMessagePartViewFactory | message part view factory map |
ICMessageViewFactory
Syntax: public ICMessageViewFactory(Context context)
Parameters : context – A valid application context
ICMessageGroupHeaderViewHolder
This class binds message group details into the message group view.
bindMessageGroup
This method binds message group details.
Syntax: void bindMessageGroup(ICMessageGroup messageGroup)
Parameters:
Parameter | Type | Description |
---|---|---|
messageGroup | ICMessageGroup | message group details |
getView
This method returns the message group header view.
Syntax: View getView()
Return value: Returns message group view.
ICMessageDataProvider
This class provides an interface to obtain message data for displaying it in ICMessageViewHolder instances.
getMessageGroup
This abstract method is used to get the message group.
Syntax: abstract ICMessageGroup getMessageGroup(int position)
Parameters:
Parameter | Type | Description |
---|---|---|
position | Int | message adapter position |
Return value: Returns message group view.
getMessageCount
This abstract method is used to get the message count from the message data provider.
Syntax: abstract int getMessageCount()
Return value: Returns the message count from message data provider.
getMessageData
This abstract method is used to get message data details from message data provider
Syntax: abstract ICMessageData getMessageData(int position)
Parameters:
Parameter | Type | Description |
---|---|---|
position | int | message adapter position |
Return value: Returns MessageData details from the message data provider.
getMessageParts
This method is used to get message parts from message details passed.
Syntax: ICMessagePart[] getMessageParts(ICMessageData message)
Parameters:
Parameter | Type | Description |
---|---|---|
message | ICMessageData | message data |
Return value: Returns array of message parts from message data.
deleteMessage
This method deletes the message from the data provider based on the position.
Syntax: abstract boolean deleteMessage(int position)
Parameters:
Parameter | Type | Description |
---|---|---|
position | Int | Position of the message |
Return value: Returns true if message deletion is successful , false otherwise.
notifyDataSetChanged
This method notifies any registered observers that the data set has changed.
Syntax: void notifyDataSetChanged()
registerObserver
This method allows registering an object that implements the ICDataSetObserver
interface to listen for dataset changes in the message data provider.
Syntax: registerObserver(ICDataSetObserver observer)
Parameters:
Parameter | Type | Description |
---|---|---|
observer | ICDataSetObserver | DataSet observer Listener |
unregisterObserver
This method allows unregistering a previously registered object which implements the ICDataSetObserver interface, in order to stop listening for DataSet changes in the Message data provider.
Syntax: unregisterObserver(ICDataSetObserver observer)
Parameters:
Parameter | Type | Description |
---|---|---|
observer | ICDataSetObserver | DataSet observer Listener |
ICMessageRecyclerView.ICMessageClickListener
This interface defines a callback to be invoked when a message view is clicked.
onMessageClick
This method will be invoked when the message click event happened
Syntax: `boolean onMessageClick(int position)``
Parameter | Type | Description |
---|---|---|
position | int | message position |
Return value: Returns True if the listener has consumed the message click event, false otherwise.
onMessageLongClick
This method is invoked when the message long-click event occurs.
Syntax: `boolean onMessageLongClick(int position)``
Parameter | Type | Description |
---|---|---|
position | int | message position |
Return value: True if the listener has consumed the message long-click event, false otherwise.
ICMessageRecyclerView.ICMessageMenuHandler
This interface definition to be invoked to listen menu build and menu item click callbacks.
onBuildMenu
This method is used to callback upon pop-up menu build.
Syntax: PopupMenu onBuildMenu(android.support.v7.widget.PopupMenu popupMenu,int adapterPosition,android.view.View anchor)
Parameter | Type | Descroption |
---|---|---|
popupMenu | android.support.v7.widget.PopupMenu | a new pop-up menu |
adapterPosition | int | message adapter position |
anchor | android.view.View | anchor view |
Return value: Returns a pop-up menu.
onMenuItemClick
This method is invoked when a menu item is clicked.
Syntax: boolean onMenuItemClick(MenuItem menuItem)
Parameter | Type | Description |
---|---|---|
menuItem | MenuItem | The menu item that was clicked |
com.imimobile.connect.ui.conversation
Classes | Interfaces |
---|---|
- ICConversationActivity - ICConversationCategory - ICConversationMessageViewFactory - ICConversationMessageViewHolder - ICConversationRecyclerView | - ICMessageDisplayedListener - ICRetryClickListener |
ICConversationActivity
This activity leverages the functionality of the lower-level components and provides necessary wiring to combine them into a fully-featured in-app chat experience with minimal code.
The activity supports the display of the user conversation list and provides a means to open them or create new conversations. Select a conversation to display the conversation view and allow users to read, compose, and send messages.
Prerequisites
This component requires that a valid ICMessageStore
instance is set within the Core SDK by calling ICMessaging.setMessageStore
.
Modes of Operation
Depending on how the activity is started, there are two distinct modes of operation. Each mode is provided to cover different usage scenarios.
The standard mode of operation presents the conversation listing and allows the user to open an existing conversation or create a new one.
Alternatively, the activity may be started to display a specific conversation directly. This is useful when you need to take your user directly to a specific conversation. Perhaps they have navigated to another area within your application, or even to another application, starting with a conversation id allows you to take your user back to the conversation.
Adaptive Layout
The layout of the activity adapts to the device display, typically when running on a phone the activity will display the conversation list full screen when a conversation is displayed this replaces the conversation list display. Navigating back from the conversation will cause the conversation list to be re-displayed.
When running on a wide layout (greater than 700dp in landscape), the layout is split into two sections. The conversation list is shown on the left and the active conversation is shown on the right.
Launching the Activity
The activity provides two helper methods to start the activity in each of the supported modes of operation.
Start
This method starts the activity to display a specific conversation.
Syntax: void start(Context context, String conversationId, Bundle extArgs)
Parameters:
Parameter | Type | Description |
---|---|---|
context | Android context | |
conversationId | Conversation Id | |
extArgs | Bundle with extra arguments |
Starts the activity to display a list of conversations.
Syntax: void start(Context context, ArrayList<ICConversationCategory> categories,ICCustomerDetails customerDetails, Bundle extArgs)
Parameters:
Parameter | Type | Description |
---|---|---|
context | Android context | |
categories | conversation categories | |
customerDetails | customer details object | |
extArgs | Bundle with extra arguments |
Styling
The activity may be customized to match the look and feel of your application. This is accomplished by setting styling attributes via XML.
To style the activity you must first declare styles that inherit from the default styles provided by the SDK and specify these custom styles within your app theme. Internally, the activity leverages the ICConversationsFragment
and ICConversationFragment
. Refer to their styling sections for further information.
ICConversationCategory
Organizations typically have multiple contact points to which a customer might be directed depending on the query. Conversation categories provide the means to drive users to the correct contact point.
The information contained in an ICConversationCategory
instance is also used to establish the correct communication stream for a conversation. Within Webex Connect, real-time messages are sent over a stream. The stream is used to direct messages to the correct service to process the message.
Properties
Property | Description |
---|---|
Title | A user-friendly title |
Image | A bitmap object representing the category |
Sub-categories | An array list of sub categories |
Constructors
ICConversationCategory |
---|
public ICConversationCategory(java.lang.String title, android.net.Uri imageUri) |
public ICConversationCategory(java.lang.String title, java.util.ArrayList subCategories, android.net.Uri imageUri) |
Methods
getImageUri
This method is used to get uri to an image representing the category, which must be a local uri.
Syntax: `android.net.Uri getImageUri()``
Return Value: Returns a uri to an image representing the category, which must be a local uri.
setImageUri
This method is used to get uri to an image representing the category, which must be a local uri.
Syntax: android.net.Uri getImageUri()
ICConversationCategoryRecyclerView
Style attributes
Name | Description | Example | Supported Values |
---|---|---|---|
categoryTextColor | Color of the text for category text | Ex: @color/default_text_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
categoryTextSize | Size of the text for category text | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
ategoryTextTypeface | Typeface of the text for category text | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
categoryTextStyle | Style of the text for category text | Ex: normal | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0). |
ICQuickReplyViewStyle
Style attributes
Name | Description | Example | Supported Values |
---|---|---|---|
backgroundResource | Background resource for quick reply view | Ex: @ drawable/default_ background | Drawable reference. If not specified, backgroundColor is used instead |
backgroundColor | Background color for quick reply view | Ex: @ color /default_background_color | May be a color value, in the form of "#rgb","#argb", "#rrggbb", or "#aarrggbb". |
marginStart | The start margin for quick reply view | Ex: 4dp | A dimension value |
marginEnd | The end margin for quick reply view | Ex: 4dp | A dimension value |
textColor | Color of text for quick reply view | Ex: @color/default_text_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
textSize | Size of text for quick reply view | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
textTypeface | Typeface of text for quick reply view | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
textTypefaceStyle | Style of the text for quick reply view | Ex: normal | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) |
textGravity | Gravity of text for quick reply view | Ex: center_vertical | Must be one of the following constant values top, bottom, left, right, center_vertical, fill_vertical, center_horizontal, fill_horizontal, center, fill, clip_vertical, clip_horizontal, start, end |
textMarginLeft | Left margin of text for quick reply view | Ex: 4dp | A dimension value |
textMarginRight | Right margin of text for quick reply view | Ex: 4dp | A dimension value |
imageGravity | Gravity of image for quick reply view | Ex: center_vertical | Must be one of the following constant values top, bottom, left, right, center_vertical, fill_vertical, center_horizontal, fill_horizontal, center, fill, clip_vertical, clip_horizontal, start, end |
imageMaxWidth | Max width of image for quick reply view | Ex: 38dp | A dimension value |
imageMaxHeight | Max height of image for quick reply view | Ex: 38dp | A dimension value |
imageScaleType | Scale type of image for quick reply view | Ex: centerInside | Must be one of the following constant values viewMatrix(0), fitXY(1), fitStart(2), fitCenter(3), fitEnd(4), center(5), centerCrop(6), centerInside(7) |
imageMarginLeft | Left margin of image for quick reply view | Ex: 4dp | A dimension value |
imageMarginRight | Right margin of image for quick reply view | Ex: 4dp | A dimension value |
ICFormPartViewStyle
Style attributes
Name | Description | Example | Supported Values |
---|---|---|---|
backgroundResource | Background resource for form part view | Ex: @ drawable/default_ background | Drawable reference. If not specified, backgroundColor is used instead |
backgroundColor | Background color for form part view | Ex: @ color /default_ background_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
titleTextColor | Color of text for form part view title | Ex: @color/default_text_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
titleTextSize | Size of text for form part view title | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
titleTextTypeface | Typeface of text for form part view title | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
titleTextTypefaceStyle | Style of the text for form part view title | Ex: normal | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) |
titleTextAlignment | Alignment of text for form part view title | Ex: center | Must be one of the following constant values inherit(0), gravity(1), textStart(2), textEnd(3), center(4), viewStart(5), viewEnd(6) |
titleMarginBottom | Bottom margin for form part view title | Ex: 4dp | A dimension value |
titleMarginLeft | Left margin for form part view title | Ex: 4dp | A dimension value |
titleMarginRight | Right margin for form part view title | Ex: 4dp | A dimension value |
titleMarginTop | Top margin for form part view title | Ex: 4dp | A dimension value |
submitBackgroundResource | Background resource for form part view submit button | Ex: @ drawable/default_ background | Drawable reference. |
submitBackgroundTint Color | Background tint color for form part view submit button | Ex: @ color /default_ background_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
submitTextColor | Color of text for form part view submit button | Ex: @color/default_text_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
submitTextSize | Size of text for form part view submit button | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
submitTextTypeface | Typeface of text for form part view submit button | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
submitTextTypefaceStyle | Style of the text for form part view submit button | Ex: normal | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) |
submitTextAlignment | Alignment of text for form part view submit button | Ex: center | Must be one of the following constant values inherit(0), gravity(1), textStart(2), textEnd(3), center(4), viewStart (5), viewEnd(6) |
submitMarginBottom | Bottom margin for form part view submit button | Ex: 4dp | A dimension value |
submitMarginLeft | Left margin for form part view submit button | Ex: 4dp | A dimension value |
submitMarginRight | Right margin for form part view submit button | Ex: 4dp | A dimension value |
submitMarginTop | Top margin for form part view submit button | Ex: 4dp | A dimension value |
marginBottom | Bottom margin for form part view | Ex: 4dp | A dimension value |
marginLeft | Left margin for form part view | Ex: 4dp | A dimension value |
marginRight | Right margin for form part view | Ex: 4dp | A dimension value |
marginTop | Top margin for form part view | Ex: 4dp | A dimension value |
textColor | Color of text for form part view | Ex: @color/default_text_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
textSize | Size of text for form part view | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
textTypeface | Typeface of text for form part view | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
textTypefaceStyle | Style of the text for form part view | Ex: normal | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) |
labelTextColor | Color of text for form part view label | Ex: @color/default_text_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
labelTextSize | Size of text for form part view label | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
labelTextTypeface | Typeface of text for form part view label | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
labelTextTypefaceStyle | Style of the text for form part view label | Ex: normal | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) |
labelMarginBottom | Bottom margin for form part view label | Ex: 4dp | A dimension value |
labelMarginLeft | Left margin for form part view | Ex: 4dp | A dimension value |
labelMarginRight | Right margin for form part view label | Ex: 4dp | A dimension value |
labelMarginTop | Top margin for form part view label | Ex: 4dp | A dimension value |
errorTextColor | Color of text for form part view error | Ex: Ex: @color/de | May be a color value, in the form of "#rgb", fault_text_color "#argb", "#rrggbb", or "#aarrggbb" |
errorTextSize | Size of text for form part view error | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
errorTextTypeface | Typeface of text for form part view error | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
errorTextTypefaceStyle | Style of the text for form part view error | Ex: normal | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) |
errorMarginBottom | Bottom margin for form part view error | Ex: 4dp | A dimension value |
errorMarginLeft | Left margin for form part view label | Ex: 4dp | A dimension value |
errorMarginRight | Right margin for form part view error | Ex: 4dp | A dimension value |
errorMarginTop | Top margin for form part view error | Ex: 4dp | A dimension value |
ICFormMultiSelectDialogStyle
Style attributes
Name | Description | Example | Supported Values |
---|---|---|---|
backgroundResource | Background resource for form multiselect dialog | Ex: @ drawable/default_background | Drawable reference. If not specified, backgroundColor is used instead |
backgroundColor | Background color for form multiselect dialog | Ex: @ color /default_background_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
marginBottom | Bottom margin for form multiselect dialog | Ex: 4dp | A dimension value |
marginLeft | Left margin for form multiselect | Ex: 4dp | A dimension value |
marginRight | Right margin for form multiselect | Ex: 4dp | A dimension value |
marginTop | Top margin for form multiselect dialog | Ex: 4dp | A dimension value |
paddingBottom | Bottom padding for form multiselect dialog | Ex: 4dp | A dimension value |
paddingLeft | Left padding for form multiselect dialog | Ex: 4dp | A dimension value |
paddingRight | Right padding for form multiselect dialog | Ex: 4dp | A dimension value |
paddingTop | Top padding for form multiselect dialog | Ex: 4dp | A dimension value |
titleTextColor | Color of text for form multiselect dialog title | Ex: @color/default_text_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
titleTextSize | Size of text for form multiselect dialog title | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
titleTextTypeface | Typeface of text for form multiselect dialog title | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
titleTextTypefaceStyle | Style of the text for form multiselect dialog title | Ex: normal | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) |
titleTextAlignment | Alignment of text for form multiselect dialog title | Ex: center | Must be one of the following constant values inherit(0), gravity(1), textStart(2), textEnd(3), center(4), viewStart (5), viewEnd(6) |
titleMarginBottom | Bottom margin for form multiselect dialog title | Ex: 4dp | A dimension value |
titleMarginLeft | Left margin for form multiselect dialog title | Ex: 4dp | A dimension value |
titleMarginRight | Right margin for form multiselect dialog title | Ex: 4dp | A dimension value |
titleMarginTop | Top margin for form multiselect dialog title | Ex: 4dp | A dimension value |
titleTextMaxLines | Max lines of text for form multiselect dialog title | Ex: 3 | A integer value |
primaryButtonHeight | Height for form multiselect dialog primary button | Ex: 40dp | A dimension value |
primaryButtonBackgroundResource | Background resource for form multiselect dialog primary button | Ex: @ drawable/default_background | Drawable reference. |
primaryButtonTextColor | Color of text for form multiselect dialog primary button | Ex: @color/default_text_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
primaryButtonTextSize | Size of text for form multiselect dialog primary button | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
primaryButtonTextTypeface | Typeface of text for form multiselect dialog primary button | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
primaryButtonTextTypefaceStyle | Style of the text for form multiselect dialog primary buttonMust be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) |
primaryButtonTextAlignment | Alignment of text for form multiselect dialog primary button | Ex: center | Must be one of the following constant values inherit(0), gravity(1), textStart(2), textEnd(3), center(4), viewStart (5), viewEnd(6) |
primaryButtonMargin | Bottom Bottom margin for form multiselect dialog primary button | Ex: 4dp | A dimension value |
primaryButtonMarginLeft | Left margin for form multiselect dialog primary button | Ex: 4dp | A dimension value |
primaryButtonMargin | Right Right margin for form multiselect dialog primary button | Ex: 4dp | A dimension value |
primaryButtonMarginTop | Top margin for form multiselect dialog primary button | Ex: 4dp | A dimension value |
primaryButtonTextAllCaps | All caps of text for form multiselect dialog primary button | Ex: false | A bool value |
secondaryButtonHeight | Height for form multiselect dialog secondary button | Ex: 40dp | A dimension value |
secondaryButtonBackgroundResource | Background resource for form multiselect dialog secondary button | Ex: @ drawable/default_background | Drawable reference. |
secondaryButtonTextColor | Color of text for form multiselect dialog secondary button | Ex: @color/de | May be a color value, in the form of "#rgb", fault_text_color "#argb", "#rrggbb", or "#aarrggbb". |
secondaryButtonTextSize | Size of text for form multiselect dialog secondary button | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
secondaryButtonTextTypeface | Typeface of text for form multiselect dialog secondary button | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
secondaryButtonTextTypefaceStyle | Style of the text for form multiselect dialog secondary button | Ex: normal | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) |
secondaryButtonTextAlignment | Alignment of text for form multiselect dialog secondary button | Ex: center | Must be one of the following constant values inherit(0), gravity(1), textStart(2), textEnd(3), center(4), viewStart (5), viewEnd(6) |
secondaryButtonMarginBottom | Bottom margin for form multiselect dialog secondary button | Ex: 4dp | A dimension value |
secondaryButtonMarginLeft | Left margin for form multiselect dialog secondary button | Ex: 4dp | A dimension value |
secondaryButtonMarginRight | Right margin for form multiselect dialog secondary button | Ex: 4dp | A dimension value |
secondaryButtonMarginTop Top margin for form multiselect dialog secondary button | Ex: 4dp | A dimension value | |
secondaryButtonTextAllCaps | All caps of text for form multiselect dialog secondary button | Ex: false | A bool value |
itemTextColor | Color of text for form multiselect dialog item text | Ex: @color/default_text_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
itemTextSize | Size of text for form multiselect dialog item text | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
itemTextTypeface | Typeface of text for form multiselect dialog item text | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
itemTextTypefaceStyle | Style of the text for form multiselect dialog item text | Ex: normal | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) |
itemTextAlignment | Alignment of text for form multiselect dialog item text | Ex: center | Must be one of the following constant values inherit(0), gravity(1), textStart(2), textEnd(3), center(4), viewStart (5), viewEnd(6) |
itemTextMarginBottom | Bottom margin for form multiselect dialog item text | Ex: 4dp | A dimension value |
itemTextMarginLeft | Left margin for form multiselect dialog item text | Ex: 4dp | A dimension value |
itemTextMarginRight | Right margin for form multiselect dialog item text | Ex: 4dp | A dimension value |
itemTextMarginTop | Top margin for form multiselect dialog item text | Ex: 4dp | A dimension valueA dimension value |
itemCheckMarkResource | Check-Mark resource for form multiselect item check-mark | Ex:@drawable/multiselect_dialog_item_checkbox | Drawable reference. |
itemCheckMarkMargin Bottom | Bottom margin for form multiselect item check-mark | Ex: 2dp | A dimension value |
itemCheckMarkMargin Left | Left margin for form multiselect item check-mark | Ex: 2dp | A dimension value |
itemCheckMarkMargin | Right Right margin for form multiselect item check-mark | Ex: 2dp | A dimension value |
itemCheckMarkMargin Top | Top margin for form multiselect item check-mark | Ex: 2dp | A dimension value |
ICGenericTemplatePartViewStyle
Style attributes
Name | Description | Example | Supported Values |
---|---|---|---|
backgroundResource | Background resource for generic template part view | Ex: @drawable/default_background | Drawable reference. If not specified, backgroundColor is used instead |
backgroundColor | Background color for generic template part view | Ex: @ color /default_background_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
marginBottom | Bottom margin for generic template part view | Ex: 4dp | A dimension value |
marginLeft | Left margin for generic template part view | Ex: 4dp | A dimension value |
marginRight | Right margin for generic template part view | Ex: 4dp | A dimension value |
marginTop | Top margin for generic template part view | Ex: 4dp | A dimension value |
paddingBottom | Bottom padding for generic template part view | Ex: 4dp | A dimension value |
paddingLeft | Left padding for generic template part view | Ex: 4dp | A dimension value |
paddingRight | Right padding for generic template part view | Ex: 4dp | A dimension value |
paddingTop | Top padding for generic template part view | Ex: 4dp | A dimension value |
genericTemplateElementViewStyle | The style for generic template element view | Ex: @style/ICGenericTemplateElementViewStyle | ICGenericTemplateElementViewStyle |
genericTemplateElementDetailsStyle | The style for generic template element details | Ex: @style/ICGenericTemplateElementDetailsStyle | ICGenericTemplateElementDetailsStyle |
ICGenericTemplateElementViewStyle
Style attributes
Name | Description | Example | Supported Values |
---|---|---|---|
width | Width for generic template element view | Ex: 212dp | A dimension value |
height | Height for generic template element view | Ex: 294dp | A dimension value |
backgroundColor | Background color for generic template element view | Ex: @ color /default_ background_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb" |
foregroundResource | Foreground resource for generic template element view | Ex: @drawable/default_fo | Drawable reference |
cornerRadius | Radius of corner for generic template element view | Ex: 8dp | A dimension value |
marginBottom | Bottom margin for generic template element view | Ex: 4dp | A dimension value |
marginLeft | Left margin for generic template element view | Ex: 4dp | A dimension value |
marginRight | Right margin for generic template element view | Ex: 4dp | A dimension value |
marginTop | Top margin for generic template element view | Ex: 4dp | A dimension value |
paddingBottom | Bottom padding for generic template element view | Ex: 0dp | A dimension value |
paddingLeft | Left padding for generic template element view | Ex: 0dp | A dimension value |
paddingRight | Right padding for generic template element view | Ex: 0dp | A dimension value |
paddingTop | Top padding for generic template element view | Ex: 0dp | A dimension value |
imageScaleType | Scale type of image for generic template element view | Ex: centerCrop | Must be one of the following constant values viewMatrix(0), fitXY(1), fitStart(2), fitCenter(3), fitEnd(4), center(5), centerCrop(6), centerInside(7) |
titleBackgroundColor | Background color for generic template element view title | Ex: @color/default_backgroud | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
titleBackgroundPaddingBottom | Bottom padding for generic template element view title | Ex: 4dp | A dimension value |
titleBackgroundPaddingLeft | Left padding for generic template element view title | Ex: 4dp | A dimension value |
titleBackgroundPaddingRight | Right padding for generic template element view title | Ex: 4dp | A dimension value |
titleBackgroundPaddingTop | Top padding for generic template element view title | Ex: 4dp | A dimension value |
titleTextColor | Color of text for generic template element view title | Ex: @color/default_text_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
titleTextSize | Size of text for generic template element view title | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
titleTextTypeface | Typeface of text for generic template element view title | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
titleTextTypefaceStyle | Style of the text for generic template element view title | Ex: normal | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) |
titleTextAlignment | Alignment of text for generic template element view title | Ex: center | Must be one of the following constant values inherit(0), gravity(1), textStart(2), textEnd(3), center(4), viewStart (5), viewEnd(6) |
titleMarginBottom | Bottom margin for generic template element view title | Ex: 4dp | A dimension value |
titleMarginLeft | Left margin for generic template element view title | Ex: 4dp | A dimension value |
titleMarginRight | Right margin for generic template element view title | Ex: 4dp | A dimension value |
titleMarginTop | Top margin for generic template element view title | Ex: 4dp | A dimension value |
titleTextMaxLines | Max lines of text for generic template element view title | Ex: 3 | A integer value |
subTitleTextColor | Color of text for generic template element view subtitle | Ex: @color/default_text_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
subTitleTextSize | Size of text for generic template element view subtitle | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
subTitleTextTypeface | Typeface of text for generic template element view subtitle | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
subTitleTextTypefaceStyle | Style of the text for generic template element view subtitle | Ex: normal | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) |
subTitleTextAlignment | Alignment of text for generic template element view subtitle | Ex: center | Must be one of the following constant values inherit(0), gravity(1), textStart(2), textEnd(3), center(4), viewStart(5), viewEnd(6) |
subTitleMarginBottom | Bottom margin for generic template element view subtitle | Ex: 4dp | A dimension value |
subTitleMarginLeft | Left margin for generic template element view subtitle | Ex: 4dp | A dimension value |
subTitleMarginRight | Right margin for generic template element view subtitle | Ex: 4dp | A dimension value |
subTitleMarginTop | Top margin for generic template element view subtitle | Ex: 4dp | A dimension value |
subTitleTextMaxLines | Max lines of text for generic template element view subtitle | Ex: 3 | A integer value |
moreButtonWidth | Width for generic template element view more button | Ex: 32dp | A dimension value |
moreButtonHeight | Height for generic template element view more button | Ex: 32dp | A dimension value |
moreButtonImageResource | Image resource for generic template element view more button | Ex: @ drawable/default_image | Drawable reference |
moreButtonMarginBottom | Bottom margin for generic template element view more button | Ex: 4dp | A dimension value |
moreButtonMarginLeft | Left margin for generic template element view more button | Ex: 4dp | A dimension value |
moreButtonMarginRight | Right margin for generic template element view more button | Ex: 4dp | A dimension value |
moreButtonMarginTop | Top margin for generic template element view more button | Ex: 4dp | A dimension value |
primaryButtonHeight | Height for generic template element view primary button | Ex: 40dp | A dimension value |
primaryButtonBackgroundResource | Background resource for generic template element view primary button | Ex: @ drawable/default_background | Drawable reference. |
primaryButtonTextColor | Color of text for generic template element view primary button | Ex: @color/default_text_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
primaryButtonTextSize | Size of text for generic template element view primary button | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
primaryButtonTextTypeface | Typeface of text for generic template element view primary button | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
primaryButtonTextTypeface | Style Style of the text for generic template element view primary button | Ex: normal | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) |
primaryButtonTextAlignment | Alignment of text for generic template element view primary button | Ex: center | Must be one of the following constant values inherit(0), gravity(1), textStart(2), textEnd(3), center(4), viewStart (5), viewEnd(6) |
primaryButtonMarginBottom | Bottom margin for generic template element view primary button | Ex: 4dp | A dimension value |
primaryButtonMarginLeft | Left margin for generic template element view primary button | Ex: 4dp | A dimension value |
primaryButtonMarginRight | Right margin for generic template element view primary button | Ex: 4dp | A dimension value |
primaryButtonMarginTop | Top margin for generic template element view primary button | Ex: 4dp | A dimension value |
primaryButtonTextAllCaps | All caps of text for generic template element view primary button | Ex: false | A bool value |
secondaryButtonHeight | Height for generic template element view secondary button | Ex: 40dp | A dimension value |
secondaryButtonBackgroundResource | Background resource for generic template element view secondary button | Ex: @ drawable/default_background | Drawable reference. |
secondaryButtonTextColor | Color of text for generic template element view secondary button | Ex: @color/default_text_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
secondaryButtonTextSize | Size of text for generic template element view secondary button | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
secondaryButtonTextTypeface | Typeface of text for generic template element view secondary button | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
secondaryButtonTextTypefaceStyle | Style of the text for generic template element view secondary button | Ex: normal | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) |
secondaryButtonTextAlignment | Alignment of text for generic template element view secondary button | Ex: center | Must be one of the following constant values inherit(0), gravity(1), textStart(2), textEnd(3), center(4), viewStart (5), viewEnd(6) |
secondaryButtonMarginBottom | Bottom margin for generic template element view secondary button | Ex: 4dp | A dimension value |
secondaryButtonMarginLeft | Left margin for generic template element view secondary button | Ex: 4dp | A dimension value |
secondaryButtonMarginRight | Right margin for generic template element view secondary button | Ex: 4dp | A dimension value |
secondaryButtonMarginTop | Top margin for generic template element view secondary button | Ex: 4dp | A dimension value |
secondaryButtonTextAllCaps | All caps of text for generic template element view secondary button | Ex: false | A bool value |
ICGenericTemplateElementDetailsStyle
Style attributes
Name | Description | Example | Supported Values |
---|---|---|---|
backgroundResource | Background resource for generic template element details view | Ex: @drawable/default_background | Drawable reference |
backgroundColor | Background color for generic template element details view | Ex: @color /default_ background_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
titleBarHeight | Width for generic template element details title bar view | Ex: 80dp | A dimension value |
closeButtonWidth | Height for generic template element details close button | Ex: 44dp | A dimension value |
closeButtonHeight | Width for generic template element details close button | Ex: 44dp | A dimension value |
closeButtonMarginBottom | Bottom margin for generic template element details close button | Ex: 8dp | A dimension value |
closeButtonMarginLeft | Left margin for generic template element details close button | Ex: 8dp | A dimension value |
closeButtonMarginRight | Right margin for generic template element details close button | Ex: 8dp | A dimension value |
closeButtonMarginTop | Top margin for generic template element details close button | Ex: 8dp | A dimension value |
closeButtonImageResource | Image resource for generic template element details close button | Ex: @drawable/default_image | Drawable reference |
imageBackgroundColor | Background color for generic template element details image | Ex: @color/default_backgroud | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
imageMarginBottom | Bottom margin for generic template element details image | Ex: 4dp | A dimension value |
imageMarginLeft | Left margin for generic template element details image | Ex: 4dp | A dimension value |
imageMarginRight | Right margin for generic template element details image | Ex: 4dp | A dimension value |
imageMarginTop | Top margin for generic template element details image | Ex: 4dp | A dimension value |
imageScaleType | Scale type for generic template element details image | Ex: fitCenter | Must be one of the following constant values viewMatrix(0), fitXY(1), fitStart(2), fitCenter(3), fitEnd(4), center(5), centerCrop(6), centerInside(7) |
imageDotIndicatorMarginBottom | Bottom margin for generic template element details dot indicator | Ex: 4dp | A dimension value |
imageDotInicatorMarginLeft | Left margin for generic template element details dot indicator | Ex: 4dp | A dimension value |
imageDotIndicatorMarginRight | Right margin for generic template element details dot indicator | Ex: 4dp | A dimension value |
imageDotIndicatorMarginTop | Top margin for generic template element details dot indicator | Ex: 4dp | A dimension value |
imageDotIndicatorColor | Color for generic template element details dot indicator | Ex: @color/default_indicator_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
imageDotIndicatorCornerRadius | Radius of corner for generic template element details dot indicator | Ex: 4dp | A dimension value |
imageDotIndicatorSize | Size for generic template element details dot indicator | Ex: 18dp | A dimension value |
imageDotIndicatorSpacing | Spacing for generic template element details dot indicator | Ex: 5dp | A dimension value |
imageDotIndicatorStrokeColor | Stroke color for generic template element details dot indicator | Ex: @color/default _color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
imageDotIndicatorStrokeWidth | Stroke width for generic template element details dot indicator | Ex: 4dp | A dimension value |
titleTextColor | Color of text for generic template element details title | Ex: @color/default_text_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
titleTextSize | Size of text for generic template element details title | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
titleTextTypeface | Typeface of text for generic template element details title | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
titleTextAlignment | Alignment of text for generic template element details title | Ex: center | Must be one of the following constant values inherit(0), gravity(1), textStart(2), textEnd(3), center(4), viewStart (5), viewEnd(6) |
titleMarginBottom | Bottom margin for generic template element details title | Ex: 4dp | A dimension value |
titleMarginLeft | Left margin for generic template element details title | Ex: 4dp | A dimension value |
titleMarginRight | Right margin for generic template element details title | Ex: 4dp | A dimension value |
titleMarginTop | Top margin for generic template element details title | Ex: 4dp | A dimension value |
titleTextMaxLines | Max lines of text for generic template element details title | Ex: 3 | A integer value |
subTitleTextColor | Color of text for generic template element details subtitle | Ex: @color/default_text_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
subTitleTextSize | Size of text for generic template element details subtitle | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
subTitleTextTypeface | Typeface of text for generic template element details subtitle | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
subTitleTextTypefaceStyle | Style of the text for generic template element details subtitle | Ex: normal | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) |
subTitleTextAlignment | Alignment of text for generic template element details subtitle | Ex: center | Must be one of the following constant values inherit(0), gravity(1), textStart(2), textEnd(3), center(4), viewStart (5), viewEnd(6) |
subTitleMarginBottom | Bottom margin for generic template element details subtitle | Ex: 4dp | A dimension value |
subTitleMarginLeft | Left margin for generic template element details subtitle | Ex: 4dp | A dimension value |
subTitleMarginRight | Right margin for generic template element details subtitle | Ex: 4dp | A dimension value |
subTitleMarginTop | Top margin for generic template element details subtitle | Ex: 4dp | A dimension value |
subTitleTextMaxLines | Max lines of text for generic template element details subtitle | Ex: 3 | A integer value |
subTitleTextLineSpacingExtra | Line spacing extra of text for generic template element details subtitle | Ex: 40dp | A dimension value |
primaryButtonHeight | Height for generic template element details primary button | Ex: 40dp | A dimension value |
primaryButtonBackgroundResource | Background resource for generic template element details primary button | Ex: @ drawable/default_background | Drawable reference. |
primaryButtonTextColor | Color of text for generic template element details primary button | Ex: @color/default_text_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
primaryButtonTextSize | Size of text for generic template element details primary button | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
primaryButtonTextTypeface | Typeface of text for generic template element details primary button | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
primaryButtonTextTypefaceStyle | Style of the text for generic template element details primary button | Ex: normal | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) |
primaryButtonTextAlignment | Alignment of text for generic template element details primary button | Ex: center | Must be one of the following constant values inherit(0), gravity(1), textStart(2), textEnd(3), center(4), viewStart (5), viewEnd(6) |
primaryButtonMarginBottom | Bottom margin for generic template element details primary button | Ex: 4dp | A dimension value |
primaryButtonMarginLeft | Left margin for generic template element details primary button | Ex: 4dp | A dimension value |
primaryButtonMarginRight | Right margin for generic template element details primary button | Ex: 4dp | A dimension value |
primaryButtonMarginTop | Top margin for generic template element details primary button | Ex: 4dp | A dimension value |
primaryButtonTextAllCaps | All caps of text for generic template element details primary button | Ex: false | A bool value |
secondaryButtonHeight | Height for generic template element details secondary button | Ex: 40dp | A dimension value |
secondaryButtonTextColor | Color of text for generic template element details secondary button | Ex: @color/default_text_color | May be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb". |
secondaryButtonTextSize | Size of text for generic template element details secondary button | Ex: @dimen/default_text_size | May be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters). |
secondaryButtonTextTypeface | Typeface of text for generic template element details secondary button | Ex: normal | Must be one of the following constant values monospace(3),normal(0),sans(1),serif (2) |
secondaryButtonTextTypefaceStyle | Style of the text for generic template element details secondary button | Ex: normal | Must be one or more (separated by '|') of the following constant values bold(1),italic(2),normal(0) |
secondaryButtonTextAlignment | Alignment of text for generic template element details secondary button | Ex: center | Must be one of the following constant values inherit(0), gravity(1), textStart(2), textEnd(3), center(4), viewStart (5), viewEnd(6) |
secondaryButtonMarginBottom | Bottom margin for generic template element details secondary button | Ex: 4dp | A dimension value |
secondaryButtonMarginLeft | Left margin for generic template element details secondary button | Ex: 4dp | A dimension value |
secondaryButtonMarginRight | Right margin for generic template element details secondary button | Ex: 4dp | A dimension value |
secondaryButtonMarginTop | Top margin for generic template element details secondary button | Ex: 4dp | A dimension value |
secondaryButtonTextAllCaps | All caps of text for generic template element details secondary button | Ex: false | A bool value |
Updated about 2 months ago