# Performer

inner class Performer < LP : ViewGroup.LayoutParams > : Hikage.PerformerScope

The core performer entity of layout build LP.

#### Parameters

parent

the parent view group.

attachToParent

whether to attach the layout to the parent.

lpClass

the layout params type.

baseContext

the context to create the layout, priority is given to parent's context. if parent is null, it must be set manually.

## Properties

dp
Link copied to clipboard
open val < N : Number > N . dp : N
px
Link copied to clipboard
open val < N : Number > N . px : N

## Functions

actualViewId
Link copied to clipboard
open override fun actualViewId (id: String ): Int

Get the actual view id by id.

bitmapResource
Link copied to clipboard
open override fun bitmapResource (@ DrawableRes resId: Int ): <Error class: unknown class>

Get the Bitmap from resId.

colorResource
Link copied to clipboard
open override fun colorResource (@ ColorRes resId: Int ): <Error class: unknown class>

Get the color from resId.

dimenResource
Link copied to clipboard
open override fun dimenResource (@ DimenRes resId: Int ): Float

Get the dimension from resId.

drawableResource
Link copied to clipboard
open override fun drawableResource (@ DrawableRes resId: Int ): <Error class: unknown class>

Get the Drawable from resId.

fontResource
Link copied to clipboard
open override fun fontResource (@ FontRes resId: Int ): <Error class: unknown class>

Get the font from resId.

Layout
Link copied to clipboard
@ Hikageable
inline fun < VB : ViewBinding> Layout (lparams: Hikage.LayoutParams ? = null, id: String ? = null): VB

Provide layout from ViewBinding.

@ Hikageable
fun Layout (view: View , lparams: Hikage.LayoutParams ? = null, id: String ? = null): View

Provide layout from exists View.

@ Hikageable
fun Layout (hikage: Hikage , lparams: Hikage.LayoutParams ? = null, id: String ? = null): Hikage

Provide layout from another Hikage.

@ Hikageable
fun Layout (@ LayoutRes resId: Int , lparams: Hikage.LayoutParams ? = null, id: String ? = null): View

Provide layout from resId.

@ Hikageable
fun Layout (delegate: Hikage.Delegate <*>, lparams: Hikage.LayoutParams ? = null, id: String ? = null, embedded: Boolean = true): Hikage

Provide layout from another Delegate.

LayoutParams
Link copied to clipboard
fun LayoutParams (width: Int = LayoutParamsUnspecified, height: Int = LayoutParamsUnspecified, matchParent: Boolean = false, widthMatchParent: Boolean = false, heightMatchParent: Boolean = false, body: LayoutParamsBody.Hikage< LP > = {}): <Error class: unknown class>

Create a new layout params.

stateColorResource
Link copied to clipboard
open override fun stateColorResource (@ ColorRes resId: Int ): <Error class: unknown class>

Get the ColorStateList from resId.

stringResource
Link copied to clipboard
open override fun stringResource (@ StringRes resId: Int , vararg formatArgs: Any ): String

Get the string from resId.

toDp
Link copied to clipboard
open override fun < N : Number > N . toDp (): <Error class: unknown class>
toPx
Link copied to clipboard
open override fun < N : Number > N . toPx (): <Error class: unknown class>
View
Link copied to clipboard
@ Hikageable
@ JvmName (name = "ViewTyped")
inline fun < V : View > View (lparams: Hikage.LayoutParams ? = null, id: String ? = null, init: HikageView < V > = {}): V

Provide a new View instance V.

@ Hikageable
inline fun View (lparams: Hikage.LayoutParams ? = null, id: String ? = null, init: HikageView < View > = {}): View

Provide a new View instance.

ViewGroup
Link copied to clipboard
@ Hikageable
@ JvmName (name = "ViewGroupLP")
inline fun < VG : ViewGroup , LP : ViewGroup.LayoutParams > ViewGroup (lparams: Hikage.LayoutParams ? = null, id: String ? = null, init: HikageView < VG > = {}, performer: HikagePerformer < LP > = {}): VG
@ Hikageable
inline fun < VG : ViewGroup > ViewGroup (lparams: Hikage.LayoutParams ? = null, id: String ? = null, init: HikageView < VG > = {}, performer: HikagePerformer < ViewGroup.LayoutParams > = {}): VG

Provide a new ViewGroup instance VG.