I'm having a bad struggle in trying to change the theme of my Android Activity in runtime.
This is what I'm trying to archieve: I have an activity (MainActivity) which contains three fragments. Two of those fragments should have a toolbar and a normal status bar, but the third one shouldn't have a toolbar and should have a transparent status bar with content behind it. So, I created two styles: the normal AppTheme with toolbar etc and another one called Fullscreen without those. Now, the theme should change when the fragments are being switched.
I have tried to just change the theme after inflating a new fragment, but that didn't work (obviously).
I also saw this question and a few others and they almost all contain the same answer which doesn't work for me.
I really hope one of you could help!
Thanks