Skip to content

//tvlib/org.mjdev.tvlib.glide.sources.layout/LayoutLoaderFactory

LayoutLoaderFactory

[androidJvm]\ class LayoutLoaderFactory(val context: Context) : ModelLoaderFactory<LayoutResId?, Drawable?>

Inflate view to a drawable thru glide library. Useful for custom drawables. Usage: GlideApp.with(context).load(LayoutResId(R.layout.layout_file)).into(target)

Constructors

LayoutLoaderFactory [androidJvm]
constructor(context: Context)

Properties

Name Summary
context [androidJvm]
val context: Context
Context

Functions

Name Summary
build [androidJvm]
open override fun build(multiFactory: MultiModelLoaderFactory): ModelLoader<LayoutResId?, Drawable?>
Prepare loader
equals [androidJvm]
open operator fun equals(other: Any?): Boolean
hashCode [androidJvm]
open fun hashCode(): Int
teardown [androidJvm]
open override fun teardown()
Destroy loader
toString [androidJvm]
open fun toString(): String