Skip to content

@Parent annotation

crypticminds edited this page Feb 20, 2020 · 2 revisions

@Parent annotation can be used to specify the parent of a view so that ColdStorage can access it.

Parameters

  • resourceId -> The resource id of the parent view.

Usage

Annotate a view that is the child of another by passing the resource id of the parent view. This annotation will work along with other data loading annotation (Eg. @LoadImage)

@Parent(R.id.parent_view)
@LoadImage(R.id.child_image_view,"https://url.com")
var childImageView : ImageView