In my application I need to getSupportActionBar()
in order to change its title and enable home as back button. I also need to have a YouTubePlayerView
to display a video. I cannot extend ActionBarActivity
and YouTubeBaseActivity
in the same time. What is the proper way to solve such problem?
You should use YouTubePlayerFragment
instead of YouTubeBaseActivity
. You will be able to extend your activity from ActionBarActivity
which will allow to use both getSupportActionBar()
and fragments.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With