Como definir a barra de progresso não decrível, e quando o texto está escrevendo no meu autocompleto para se tornar visível novamente.
-
10-12-2019 - |
Pergunta
Eu implementei um textwatcher, então quando estou escrevendo algo que eu quero que minha barra de progresso se torne visível (e é claro como torná-lo invisível em oncreate)
Solução
In order to hide a control such as a ProgressBar in Android use the setVisibility() method like that:
mProgressBar.setVisibility(View.VISIBLE); // To set it visible
and:
mProgressBar.setVisibility(View.INVISIBLE); // To set it invisible
So just set it to View.INVISIBLE inside your Activity onCreate() method, then set it to View.VISIBLE when you need it to be visible.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow