Answer the question
In order to leave comments, you need to log in
How to set an icon?
if (listPosition == 6) {
if (isPurchasedKey) {
ivLock.setImageResource(R.drawable.ic_baseline_lock_open_24);
} else {
if (listPosition == 6) {
ivLock.setImageResource(R.drawable.ic_baseline_lock_24);
}
}
}
if (listPosition == 6 && listPosition == 5) {
if (isPurchasedKey) {
ivLock.setImageResource(R.drawable.ic_baseline_lock_open_24);
} else {
if (listPosition == 6 && listPosition == 5) {
ivLock.setImageResource(R.drawable.ic_baseline_lock_24);
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question