I'm working on an android application and my question is: When the user logs into the application, it checks the permissions of the application. How can I make this button invisible and organize to not leave blank the space that this button occupied?
Here are some of the 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);