Created
August 29, 2017 20:18
-
-
Save jifferon/018ee3843ba28f1cbb4be67a029378e8 to your computer and use it in GitHub Desktop.
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
override fun getItemViewType(position: Int): Int { | |
if(getItemAtPosition(position).saleAmount > 0) { | |
return Type.SALE.value | |
} | |
return Type.NORMAL.value | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment