Skip to content

Instantly share code, notes, and snippets.

@waseefakhtar
Last active May 2, 2021 18:18
Show Gist options
  • Save waseefakhtar/7d7dc52739003b4be8440b784a71e3bf to your computer and use it in GitHub Desktop.
Save waseefakhtar/7d7dc52739003b4be8440b784a71e3bf to your computer and use it in GitHub Desktop.
val drawer = findViewById(R.id.drawer)
val drawerToggle = ActionBarDrawerToggle(this, drawer, R.string.open, R.string.close)
drawer.addDrawerListener(drawerToggle)
drawerToggle.syncState()
supportActionBar?.setDisplayHomeAsUpEnabled(true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment