Skip to content

Instantly share code, notes, and snippets.

@vontell
Created January 30, 2018 18:40
Show Gist options
  • Save vontell/900886be7be6b81c75ed92135b719215 to your computer and use it in GitHub Desktop.
Save vontell/900886be7be6b81c75ed92135b719215 to your computer and use it in GitHub Desktop.
002 ChipView Properties
...
// VARIABLE DEFINITIONS AND SETTERS FOR PROPERLY LOADING INFORMATION ---------------------------
var text : String? = null
/**
* Sets the text label for this ChipView
* @param value The string to set for this label
*/
set(value) {
field = value
displayText()
}
var imageResource : Drawable? = null
/**
* Sets the image for this ChipView
* @param value The drawable to set for this chip image
*/
set(value) {
field = value
displayImage()
}
var imageURL : String? = null
/**
* Sets the image for this ChipView to be loaded from the given URL / path
* @param value The URL path to an image to set for this chip
*/
set(value) {
field = value
displayImage()
}
private var removeListener : OnChipRemovedListener? = null
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment