开发者

how to redraw linearlayout after clicking on button in android?

开发者 https://www.devze.com 2023-01-26 15:57 出处:网络
I have a linearlayout that is filled with texviews dynamically when i click on a button , but the content of linearlayout doesn\'t appear, how开发者_运维知识库 can i redraw it ??To force a view to dra

I have a linearlayout that is filled with texviews dynamically when i click on a button , but the content of linearlayout doesn't appear, how开发者_运维知识库 can i redraw it ??


To force a view to draw, call invalidate(). (see: http://developer.android.com/reference/android/view/View.html)


If the textView is changes inside the on click listen event on the button then there is no need to call the invalidate. I suggest you to post the code so that it will give a more clear picture.

0

精彩评论

暂无评论...
验证码 换一张
取 消