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

Sorry man but you missed the spot. There in an edge case, if you use PreferenceActivity as your base Activity class you don’t use setContentView because your layout is “inflated” from preferences, in this case you cannot find Toolbar. I’m kinda struggling with this issue :-/

Like what you read? Give Iwo Polański a round of applause.

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