2
I am working on an android application and my question is: When the user logs in the application, it checks the permissions of the same.
How can I make this button invisible and organize so as not to be blank the space that this button occupied ?
Below are some buttons I’m using in the Menu class:
btnDadosCadastrais = (Botton) findViewById(R.id.dadosCadastrais);
btnDadosCadastrais.setOnClickListener(this);
btnDebitosPendentes = (CardView)findViewById(R.id.debitosPendentes);
btnDebitosPendentes.setOnClickListener(this);
btnHistoricoPagementos = (Botton) findViewById(R.id.HistoricoPagamento);
btnHistoricoPagementos.setOnClickListener(this);
btnSolicitarAtendimento = (Botton) findViewById(R.id.solicitarAtendimento);
btnSolicitarAtendimento.setOnClickListener(this);
btnHistoricoAtendimento = (Botton) findViewById(R.id.historicoAtendimento);
btnHistoricoAtendimento.setOnClickListener(this);
btnGraficosDeUso = (Botton) findViewById(R.id.graficoDeUso);
btnGraficosDeUso.setOnClickListener(this);
btnExtratoDeAutenticacao= (Botton) findViewById(R.id.ExtratoAutenticacao);
btnExtratoDeAutenticacao.setOnClickListener(this);
Thanks for the reply, @Ramaral, I did not have this information that Invisible still occupied the space.
– rodrigo.oliveira