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 :-/

Show your support

Clapping shows how much you appreciated Iwo Polański’s story.