protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.ActionBar); viewContainer = FindViewById <ActionBarPaddedFrameLayout>(Resource.Id.view_container); playerFragment = FragmentManager.FindFragmentById <YouTubePlayerFragment>(Resource.Id.player_fragment); tutorialTextView = FindViewById(Resource.Id.tutorial_text); playerFragment.Initialize(DeveloperKey.Key, this); viewContainer.SetActionBar(ActionBar); // Action bar background is transparent by default. // 0xAA0000000 ActionBar.SetBackgroundDrawable(new ColorDrawable(Android.Graphics.Color.Black)); // Create your application here }
protected override void OnCreate(Bundle bundle) { base.OnCreate (bundle); SetContentView (Resource.Layout.ActionBar); viewContainer = FindViewById<ActionBarPaddedFrameLayout>(Resource.Id.view_container); playerFragment = FragmentManager.FindFragmentById<YouTubePlayerFragment>(Resource.Id.player_fragment); tutorialTextView = FindViewById(Resource.Id.tutorial_text); playerFragment.Initialize(DeveloperKey.Key, this); viewContainer.SetActionBar(ActionBar); // Action bar background is transparent by default. // 0xAA0000000 ActionBar.SetBackgroundDrawable(new ColorDrawable(Android.Graphics.Color.Black)); // Create your application here }