I have successfully integrated YouTube Player in my app but I am not able to use a custom font to other UI elements. On other Activities, the font is working.
public class PlayerActivity extends YouTubeBaseActivity implements CustomAdapter.Listner {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_player);
}
}
I found the solution.
By using YoutubePlayerSupportFragment
instead of YoutubePlayerView
I can simply use AppCompatActivity
and hence use Custom fonts in XML.