I'm creating sliding menu, this is how looks like my activity_main.xml file
<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawerLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".app.MainActivity">
(...)
</androidx.drawerlayout.widget.DrawerLayout>
And inside MainActivity when I try to create ActionBarDrawToggle like that:
toggle = ActionBarDrawerToggle(this, drawerLayout , R.string.open, R.string.close)
but drawerLayout is not know, highlighted on red. I've try to change that by "androidx.drawerlayout.widget.DrawerLayout", invalidate cache, but without result.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…