androidveil / com.skydoves.androidveil / VeilLayout

VeilLayout

class VeilLayout : FrameLayout

VeilLayout creates skeletons about the complex child views with shimmering effect.

Constructors

<init>

VeilLayout(context: Context)
VeilLayout(context: Context, attrs: AttributeSet?)
VeilLayout(context: Context, attrs: AttributeSet?, defStyleAttr: Int)
VeilLayout(context: Context, attrs: AttributeSet?, defStyleAttr: Int, defStyleRes: Int)

Properties

defaultChildVisible

var defaultChildVisible: Boolean

drawable

var drawable: Drawable?

isVeiled

var isVeiled: Boolean

layout

var layout: Int

nonShimmer

val nonShimmer: Shimmer!

radius

var radius: Float

shimmer

var shimmer: Shimmer!

shimmerContainer

val shimmerContainer: ShimmerFrameLayout

shimmerEnable

var shimmerEnable: Boolean

Functions

invalidate

Invalidate VeilLayout & Shimmer

fun invalidate(): Unit

onFinishInflate

Call addMaskElements method after inflating.

fun onFinishInflate(): Unit

setLayout

Remove previous views and inflate a new layout using an inflated view.

fun setLayout(layout: View): Unit

startShimmer

Starts the shimmer animation.

fun startShimmer(): Unit

stopShimmer

Stops the shimmer animation.

fun stopShimmer(): Unit

unVeil

Make disappear the mask.

fun unVeil(): Unit

veil

Make appear the mask.

fun veil(): Unit