From 8ffd4e27bd68a9866015f4ded1bd015b4ed1c482 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Mon, 31 Jan 2022 21:15:34 +0200 Subject: [PATCH] Update binds doc file to add doc for BindGif annotation --- docs/annotations/binds.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/annotations/binds.md b/docs/annotations/binds.md index ad85b01..75c1abe 100644 --- a/docs/annotations/binds.md +++ b/docs/annotations/binds.md @@ -30,6 +30,22 @@ Example: val wallpaper : String ``` +### @BindGif +Used to annotate integer which represent the gif raw file name to load it into ImageView + +Parameters: + +- viewId: the id of the ImageView + +- loader: can be GifLoader.GLIDE, GifLoader.COIL + +Example: + +```kotlin +@BindImage(GifLoader.COIL, "main_background") +val wallpaper : Int +``` + ### @BindImageRes Used to annotate int which represent the resource id to used as an resoruce for ImageView