I am dynamically adding a TextView in an activity layout. the activity gets values from another activity using startActivityForResult and then creates a textView dynamically and add particular value to it. but the problem is that there is an update button to the same activity when I again get the value and come back to the activity responsible for displaying the textView doesn't update that textView and adds another textView below the previous textView int the layout and it keeps on adding without updating. I know we can set its visibility to gone but does it removes the textView from the child elements of the layout as well or there is another way to destroy that text view and create another in that place?I am dynamically adding a TextView in an activi