0
Good create that way
TextView textView = new TextView(this);
textView.setText("Alguma coisa");
LinearLayout linear = (LinearLayout)findViewById(R.id.layoutVertical);
linear.addView(textView);
and to remove I did so
linear.removeView(textView);
But did not remove it will be that another way to remove?
Don’t forget to use in
removeView(textView)
the same instance oftextView
that used inaddView(textView)
– ramaral
Wouldn’t it be easier to change the visibility to Gone? textView.setVisibility(Visible.GONE);
– Luccas Melo
@ramaral you are referring to
linear
?– Vale
Both of you, both of you
linear
as to thetextview
– ramaral