Skip to content

Commit

Permalink
Update binds doc file to add doc for BindGif annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
AmrDeveloper committed Jan 31, 2022
1 parent bc28c58 commit 8ffd4e2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/annotations/binds.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8ffd4e2

Please sign in to comment.