Last active
October 11, 2018 18:21
-
-
Save DanishAmjad12/bb67711635e666ba24a313d3aec64ff5 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
private void setupValuesInWidgets(MyViewHolder itemHolder, | |
Model settingsModel, int pos) { | |
if (settingsModel != null) { | |
itemHolder.ivLogo.setBackgroundResource(settingsModel.getImage()); | |
itemHolder.ivLogo.getLayoutParams().height = getPixelFromDips(mContext, SMALL_BOX_HEIGHT_IN_DP); | |
if (modelArrayList.size() == SIZE_1) { | |
cellForItemOne(itemHolder); | |
} else { | |
if (isEven) { | |
if (modelArrayList.size() == SIZE_2) | |
cellForItemsTwo(pos, itemHolder); | |
else | |
cellForItemsEven(pos, itemHolder); | |
} else | |
cellForItemsOdd(pos, itemHolder); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment