ResourcesScope
The receiver for KComponent methods which need to access resources and widgets like Row, Column, and Text. This class exposes the ability to access functions defined in Resources like stringRes/drawableRes etc.
Inheritors
Functions
Constructs a new Column without any children.
Constructs a new Column. Add children by using FlexboxContainerScope.child or FlexboxContainerScope.children:
Return a android.graphics.drawable.Drawable for a ColorInt value as a Drawable instance.
Retrieves a styled attribute value for provided {@param id}.
Returns the instance registered for the type T in this hierarchy, and null
if no value was registered. Tree props are registered for a sub-hierarchy via TreePropProvider or com.facebook.litho.annotations.OnCreateTreeProp in the Spec API.
Returns the instance registered for the type T in this hierarchy, throws if no value was registered. Tree props are registered for a sub-hierarchy via TreePropProvider or com.facebook.litho.annotations.OnCreateTreeProp in the Spec API.
Constructs a new Column without any children.
Constructs a new Row. Add children by using FlexboxContainerScope.child or FlexboxContainerScope.children: