Ejemplo n.º 1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.NuevaNotalayout);
            var menuToolbar = FindViewById <Toolbar>(Resource.Id.toolbarMenuNotas);

            SetActionBar(menuToolbar);
            ActionBar.Title = "Nueva Nota";

            nuevaNota        = FindViewById <EditText>(Resource.Id.nuevaNotaEditText);
            tituloNota       = FindViewById <EditText>(Resource.Id.tituloEditText);
            nuevaNotaLinear  = FindViewById <LinearLayout>(Resource.Id.nuevaNotaLinearLayout);
            notaCanvasLayout = FindViewById <LinearLayout>(Resource.Id.notaLinearLayout);
            linearTituloNota = FindViewById <LinearLayout>(Resource.Id.linearTituloNuevaNota);
            nuevaNotaLinear.SetBackgroundColor(Android.Graphics.Color.LightYellow);
            ActionBar.SetDisplayHomeAsUpEnabled(true);
            color = Metodos.CambiarColorNotasGeneric(this, null, 0, 1);
            Explode explode = new Explode();

            explode.SetDuration(400);
            Window.EnterTransition = explode;


            tituloNota.FocusableInTouchMode = true;
            //Dibujando Lineas en Linearlayout funcional
            LienzoDraw linea = new LienzoDraw(this);

            notaCanvasLayout.AddView(linea);
        }