M
M
Muslim Mamaev2022-04-07 19:37:05
Java
Muslim Mamaev, 2022-04-07 19:37:05

How to set an icon for a section?

Hello! In my application, there are 5-6 sections that are available by subscription. Before section 6 there is an icon, I would like to add an icon before the 5th section. Help with code. I will be grateful to you. Here is the code

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);
                }
            }
        }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question