add a back button in toolbar android kotlin code example Example: android add back button to toolbar programmatically actionBar.setDisplayHomeAsUpEnabled(true);