setExpandPolicy

open fun setExpandPolicy(expandPolicy: Int)

Sets the layout policy to apply when expanding this view (not used when expanding full screen)

Parameters

expandPolicy

the policy to set. Can be a combination of vertical expand policy (EXPAND_FROM_TOP or EXPAND_FROM_BOTTOM) and horizontal alignment policy (EXPAND_ALIGN_LEFT or EXPAND_ALIGN_CENTER or EXPAND_ALIGN_RIGHT).

See also

,#EXPAND_FROM_BOTTOM,#EXPAND_ALIGN_RIGHT,#EXPAND_ALIGN_LEFT,#EXPAND_ALIGN_CENTER