阅读背景:

用更新的TextView Android替换TextView

来源:互联网 

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




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: