this is the problem I'm trying to solve.
TextView[] containers=new TextView[2];
and I am calling following mehtod.
compeletLogin(containers);
and following is the method declaration.
private void compeletLogin(@Size(2) TextView[] containers) {
mEditTextName.setVisibility(View.GONE);
mEditTextPass.setVisibility(View.GONE);
mButtonLogin.animate().translationY(200);
mButtonLogin.setText(R.string.logout);
mImageProfile.setVisibility(View.VISIBLE);
mTextViewName.setVisibility(View.VISIBLE);
mTextViewName.setText(name);
for (TextView tv: containers){
tv.setVisibility(View.GONE);
}
}
but when I am increasing length of array it's not giving me any error!