Content Editing Styling Bar
open class ContentEditingStylingBar : FrameLayout, View.OnClickListener, ContentEditingManager.OnContentEditingModeChangeListener, ContentEditingManager.OnContentEditingContentChangeListener, RadioGroup.OnCheckedChangeListener, CompoundButton.OnCheckedChangeListener
Bottom auxiliary bar displayed when editing documents. Provides buttons for increasing and reducing the font size and clearing fields
Types
Link copied to clipboard
interface OnContentEditingBarLifecycleListener
Listener for the lifecycle of the ContentEditingStylingBar.
Functions
Link copied to clipboard
open fun addOnContentEditingBarLifecycleListener(@NonNull listener: ContentEditingStylingBar.OnContentEditingBarLifecycleListener)
Adds an OnContentEditingBarLifecycleListener for listening to the content editing bar lifecycle.
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
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
Called when the provided block goes out of editing mode (loses focus, or global content editing mode is being finished)
Link copied to clipboard
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
Called when a style that affects the whole textblock has successfully been changed.
Link copied to clipboard
open fun removeOnContentEditingBarLifecycleListener(@NonNull listener: ContentEditingStylingBar.OnContentEditingBarLifecycleListener)
Removes a previously added OnContentEditingBarLifecycleListener.
Link copied to clipboard
Sets background color to the content editing bar.
Link copied to clipboard
Sets the background color of the font name and size buttons
Link copied to clipboard
Sets the checked background color of checkable buttons (bold/italic)
Link copied to clipboard
Sets the name of the font
Link copied to clipboard
Sets the size of the font
Link copied to clipboard
Link copied to clipboard
Sets the color of the border around the font icon filled image
Link copied to clipboard
Sets color of the icons on this content editing styling bar.
Link copied to clipboard
Sets color of the text on this content editing bar and the font color image
Link copied to clipboard
Link copied to clipboard
Unbinds from content editing controller.