ContentEditingStylingBar

Constructors

Link copied to clipboard
constructor(@NonNull context: Context)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int)

Types

Link copied to clipboard
Listener for the lifecycle of the ContentEditingStylingBar.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Binds to form editing controller.
Link copied to clipboard
Returns background color set to the content editing bar.
Link copied to clipboard
open fun onCheckedChanged(buttonView: CompoundButton, isChecked: Boolean)
open fun onCheckedChanged(group: RadioGroup, checkedId: Int)
Link copied to clipboard
open fun onClick(v: View)
Link copied to clipboard
open fun onContentSelectionChange(contentId: UUID, selStart: Int, selEnd: Int, styleInfo: StyleInfo, styleWasChanged: Boolean)
Called when the cursor position/selection has changed Mainly used to update the content editing toolbar to show the proper text style for the current cursor position.
Link copied to clipboard
Called when entering content editing mode.
Link copied to clipboard
Called when exiting text selection mode.
Link copied to clipboard
open fun onFinishEditingContentBlock(contentId: UUID)
Called when the provided block goes out of editing mode (loses focus, or global content editing mode is being finished)
Link copied to clipboard
open fun onStartEditingContentBlock(contentId: UUID)
Called when the provided block goes into editing mode (need to change the frame style and display the editing widget now)
Link copied to clipboard
open fun onTextBlockStyleChange(contentId: UUID, textBlockStyleInfo: TextBlockStyleInfo)
Called when a style that affects the whole textblock has successfully been changed.
Link copied to clipboard
open fun setBackgroundColor(backgroundColor: Int)
Sets background color to the content editing bar.
Link copied to clipboard
open fun setFontButtonsColor(fontButtonsColor: Int)
Sets the background color of the font name and size buttons
Link copied to clipboard
open fun setFontButtonsColorChecked(fontButtonsColorChecked: Int)
Sets the checked background color of checkable buttons (bold/italic)
Link copied to clipboard
open fun setFontNameText(@NonNull fontName: String, isFontResolved: Boolean)
Sets the name of the font
Link copied to clipboard
open fun setFontSizeText(fontSize: String, fontSizeUnit: String)
Sets the size of the font
Link copied to clipboard
open fun setFontSmallButtonsColor(fontSmallButtonsColor: Int)
Link copied to clipboard
open fun setIconBorderColor(iconBorderColor: Int)
Sets the color of the border around the font icon filled image
Link copied to clipboard
open fun setIconsColor(iconColor: Int)
Sets color of the icons on this content editing styling bar.
Link copied to clipboard
open fun setTextColor(textColor: Int)
Sets color of the text on this content editing bar and the font color image
Link copied to clipboard
open fun setVisibility(visibility: Int)
Link copied to clipboard
open fun unbindController()
Unbinds from content editing controller.