Exemplo n.º 1
0
 private void LoadClockFragment()
 {
     using (FragmentTransaction fragmentTransaction = FragmentManager.BeginTransaction())
     {
         fragmentTransaction.Replace(Resource.Id.weatherandcLockplaceholder, clockFragment);
         fragmentTransaction.DisallowAddToBackStack();
         fragmentTransaction.Commit();
     }
 }
Exemplo n.º 2
0
 private void LoadNotificationFragment()
 {
     using (FragmentTransaction fragmentTransaction = FragmentManager.BeginTransaction())
     {
         fragmentTransaction.Replace(Resource.Id.MusicNotificationPlaceholder, notificationFragment);
         fragmentTransaction.SetCustomAnimations(Resource.Animation.fade_in, Resource.Animation.fade_out);
         fragmentTransaction.DisallowAddToBackStack();
         fragmentTransaction.Commit();
     }
 }
Exemplo n.º 3
0
 private void StartMusicController()
 {
     // я голоден... ; хД
     using (FragmentTransaction fragmentTransaction = FragmentManager.BeginTransaction())
     {
         fragmentTransaction.Replace(Resource.Id.MusicNotificationPlaceholder, musicFragment);
         fragmentTransaction.SetCustomAnimations(Resource.Animation.fade_in, Resource.Animation.fade_out);
         fragmentTransaction.DisallowAddToBackStack();
         fragmentTransaction.Commit();
     }
     isMusicWidgetPresent = true;
     StartFloatingNotificationService();
 }