Created
June 7, 2016 21:45
-
-
Save biodunalfet/e58f2d660b29599fda500bc856dfbb6d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public int getItemViewType(int position) { | |
if (general.get(position).isParent()){ | |
return PARENT; | |
} | |
else{ | |
return CHILD; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment