Form Editing Bar
open class FormEditingBar : FrameLayout, View.OnClickListener, FormManager.OnFormElementUpdatedListener, FormManager.OnFormElementEditingModeChangeListener, FormManager.OnFormElementViewUpdatedListener
Bottom auxiliary bar displayed when filling forms. Provides buttons for navigating between form fields in tab order, clearing form field and finishing with form editing.
Types
Link copied to clipboard
interface OnFormEditingBarLifecycleListener
Listener for the lifecycle of the FormEditingBar.
Functions
Link copied to clipboard
open fun addOnFormEditingBarLifecycleListener(@NonNull listener: FormEditingBar.OnFormEditingBarLifecycleListener)
Adds an OnFormEditingBarLifecycleListener for listening to the form editing bar lifecycle.
Link copied to clipboard
Binds to form editing controller.
Link copied to clipboard
Returns background color set to the form editing bar.
Link copied to clipboard
Returns color of the icons on this form editing bar.
Link copied to clipboard
Return resource id of the icon marking navigation to the next form.
Link copied to clipboard
Return resource id of the icon marking navigation to the previous form.
Link copied to clipboard
Return color of the text on this form editing bar.
Link copied to clipboard
Called then form element editing mode changes, meaning another form element is being selected for editing.
Link copied to clipboard
Called when form element editing mode has been entered.
Link copied to clipboard
Called when form element editing mode has been exited.
Link copied to clipboard
Called when form element gets updated.
Link copied to clipboard
open fun onFormElementValidationFailed(@NonNull formElement: FormElement, @NonNull validationError: String)
Called when form element validation fails.
Link copied to clipboard
Called when form element validation succeeded.
Link copied to clipboard
Called whenever form element view gets updated, listeners should update their UI accordingly.
Link copied to clipboard
open fun removeOnFormEditingBarLifecycleListener(@NonNull listener: FormEditingBar.OnFormEditingBarLifecycleListener)
Removes a previously added OnFormEditingBarLifecycleListener.
Link copied to clipboard
Sets background color to the form editing bar.
Link copied to clipboard
Sets color of the icons on this form editing bar.
Link copied to clipboard
Sets resource id of the icon marking navigation to the next form.
Link copied to clipboard
Sets resource id of the icon marking navigation to the previous form.
Link copied to clipboard
Sets color of the text on this form editing bar.
Link copied to clipboard
Link copied to clipboard
Unbinds from form editing controller.