add View Annotation
Add view annotation inflated from resId synchronously.
Annotation options must include Geometry where we want to bind our view annotation.
Width and height could be specified explicitly but better idea will be not specifying them as they will be calculated automatically based on view layout.
Return
inflated View.
Parameters
layout resource id
view annotation options
Throws
if options did not include geometry.
Add view annotation inflated from resId asynchronously.
In order to use this function please add following dependency to your project.
Annotation options must include Geometry where we want to bind our view annotation.
Width and height could be specified explicitly but better idea will be not specifying them as they will be calculated automatically based on view layout.
Parameters
layout resource id
view annotation options
instance of AsyncLayoutInflater provided by the user
callback triggered when View is inflated.
Throws
if options did not include geometry.
Add annotation View which is already inflated. View dimensions will be taken as width / height from view's layout params unless they are not specified explicitly with ViewAnnotationOptions.Builder.width and ViewAnnotationOptions.Builder.height.
Annotation options must include Geometry where we want to bind our view annotation.
Width and height could be specified explicitly but better idea will be not specifying them as they will be calculated automatically based on view layout.
Parameters
view that was already inflated
view annotation options
Throws
if options did not include geometry.