I would prefer this way ``` (activity as AppCompat...
# android
b
I would prefer this way
Copy code
(activity as AppCompatActivity).supportActionBar?.apply {
            setDisplayShowTitleEnabled(false)
            setDisplayHomeAsUpEnabled(true)
            setDisplayUseLogoEnabled(true)
            setLogo(R.drawable.shopping_cart)
}