How to add Toolbar to an Activity which doesn’t extend AppCompatActivity
Mario Viviani
1016

There’s a small bug in your onCreate: delegate.onCreate(…) should be called before super.onCreate(…), according to the docs: http://developer.android.com/reference/android/support/v7/app/AppCompatDelegate.html#onCreate(android.os.Bundle)

Like what you read? Give Rohan Dhruva a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.