I have two textviews and one button. The first textview is to get user email address, once user clicks on the send button, it sends him a pin number. initially pin number textview is invisible, if pin number is sent to email address and then it becomes visible.
My question why there is space a between the first textview and the button, because of initially pin textview invisible. I though that it automatically aligns when the pin textview becomes visible. Why it still holds its place. I wonder how could I solve that issue?
editTextEmail = (EditText) view.findViewById(R.id.editTextEmail);
editTextPin = (EditText) view.findViewById(R.id.editTextPin);
editTextPinLayout =(TextInputLayout) view.findViewById((R.id.editTextPinInputLayout));
editTextPinLayout.setVisibility(View.INVISIBLE);
buttonSend = (Button) view.findViewById(R.id.buttonSend);