Exemple #1
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            this.databaseReference = ConfiguracaoFireBase.getFireBaseData();

            View view = inflater.Inflate(Resource.Layout.Tela1Layout, container, false);

            this.btCadastro = (Button)view.FindViewById(Resource.Id.BtCadastro);


            /* Eventos */
            this.btCadastro.Click += BtCadastro_Click;
            return(view);
        }
Exemple #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            SetContentView(Resource.Layout.activity_main);

            this.navigationView = (BottomNavigationView)FindViewById(Resource.Id.navigationView);

            //this.configuracaoFireBase = new ConfiguracaoFireBase(this);

            this.firebaseAuth      = ConfiguracaoFireBase.getFirebaseAutenticacao();
            this.databaseReference = ConfiguracaoFireBase.getFireBaseData();

            verificarUsuarioLogado();

            this.navigationView.SetOnNavigationItemSelectedListener(this);
            this.navigationView.SelectedItemId = Resource.Id.navigation_songs;
        }