Created
January 30, 2018 18:40
-
-
Save vontell/900886be7be6b81c75ed92135b719215 to your computer and use it in GitHub Desktop.
002 ChipView Properties
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
... | |
// 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