Kotlin - R.string.navigation_drawer_open, Not being imported?

Asked

Viewed 81 times

0

I’m trying to learn Kotlin, but I can’t use navigation_drawer_open, nor the navigation_drawer_close, as shown in the attached image

Someone would give me a suggestion of what to do to fix the problem?

inserir a descrição da imagem aqui

1 answer

1

Are they declared in the strings.xml? Normally these strings are created automatically, apparently they are not, so just add them to the strings.xml:

<string name="navigation_drawer_open">Open navigation drawer</string>
<string name="navigation_drawer_close">Close navigation drawer</string>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.