Upon several research, what I concluded as, we cannot use the hamburger icon to open navigation drawer without using the toolbar.
private fun setDrawer(){
appCompatActivity.setSupportActionBar(binding!!.toolbar)
appCompatActivity.getSupportActionBar()!!.setDisplayHomeAsUpEnabled(true);
drawerLayout = binding!!.myDrawerLayout
actionBarDrawerToggle = ActionBarDrawerToggle(appCompatActivity, drawerLayout,binding!!.toolbar, R.string.app_name, R.string.app_name)
drawerLayout?.addDrawerListener(actionBarDrawerToggle!!)
actionBarDrawerToggle!!.syncState()
}
Finally I achieved my desired design putting same color with whole page and that toolbar view which is presented as below.
So, can I achieve this using another approach?