-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Custom image settings with glide requestOptions
- Loading branch information
Showing
2 changed files
with
18 additions
and
34 deletions.
There are no files selected for viewing
33 changes: 8 additions & 25 deletions
33
library/src/main/java/com/utkukutlu/library/cherryslider/CherrySliderModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,10 @@ | ||
package com.utkukutlu.library.cherryslider | ||
|
||
class CherrySliderModel { | ||
|
||
var imageUrl: String? = null | ||
var imagePath: Int? = 0 | ||
var title: String? = null | ||
|
||
constructor (imageUrl: String) { | ||
this.imageUrl = imageUrl | ||
} | ||
|
||
constructor (imagePath: Int) { | ||
this.imagePath = imagePath | ||
} | ||
|
||
constructor (imageUrl: String, title: String?) { | ||
this.imageUrl = imageUrl | ||
this.title = title | ||
} | ||
|
||
constructor (imagePath: Int, title: String?) { | ||
this.imagePath = imagePath | ||
this.title = title | ||
} | ||
|
||
} | ||
import com.bumptech.glide.request.RequestOptions | ||
|
||
data class CherrySliderModel( | ||
var imageUrl: String? = null, | ||
var imagePath: Int? = null, | ||
var title: String? = null, | ||
var opts: RequestOptions? = null | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters