Closed uzumakinaruto123 closed 8 years ago
Its solved ,
i had to do setVisibility(View.VISIBLE);
too inside if
if (itemtype % 2 == 0){
oi.setVisibility(View.VISIBLE);
Glide.with(getActivity()).load(R.drawable.testimg).into(oi);
}else{
oi.setVisibility(View.GONE);
}
i am repeating cards like this
CustomCard
Images are set correctly for even elements as per the logic. But , On scroll all images are gone.
Looks like its because conditional checking i am doing inside setupInnerViewElements .
Any help is appreciated.