コード例 #1
0
 private void UnbindViews()
 {
     linearLayout       = null;
     recycler           = null;
     tvTitulo           = null;
     tvTexto            = null;
     v                  = null;
     wallpaperManager   = null;
     papelTapiz         = null;
     layoutManager      = null;
     lockScreenInstance = null;
     backgroundFactory  = null;
     fecha              = null;
     dia                = null;
     mes                = null;
     notificationAction = null;
 }
コード例 #2
0
 private void InicializarValores()
 {
     //Propiedades de la ventana: Barra de estado odulta y de Navegación traslúcida
     Window.AddFlags(WindowManagerFlags.TranslucentNavigation);
     Window.AddFlags(WindowManagerFlags.Fullscreen);
     wallpaperManager        = WallpaperManager.GetInstance(this);
     papelTapiz              = wallpaperManager.Drawable;
     backgroundFactory       = new BackgroundFactory();
     linearLayout.Background = backgroundFactory.Difuminar(papelTapiz);
     layoutManager           = new LinearLayoutManager(this);
     recycler.SetLayoutManager(layoutManager);
     RunOnUiThread(() => recycler.SetAdapter(Catcher.adapter));
     fecha              = Calendar.GetInstance(Locale.Default);
     dia                = fecha.Get(CalendarField.DayOfMonth).ToString();
     mes                = fecha.GetDisplayName(2, 2, Locale.Default);
     tvFecha.Text       = string.Format(dia + ", " + mes);
     lockScreenInstance = this;
 }