android TextView setText not working

前端 未结 7 2014
被撕碎了的回忆
被撕碎了的回忆 2021-01-04 02:37

I know there are a lot of similar threads but I\'ve gone through them and still can\'t figure out the problem. My program reaches the Handler but it always returns the catc

7条回答
  •  有刺的猬
    2021-01-04 03:03

    For future reference, I had multiple fragments, one for each tab in my ViewPager. One TextView had the same id in two fragments and that created a conflict. I didn't realize I had the same id so everything seemed fine, no error message, but the text simply didn't change. Therefore I'd recommend using unique names for the id.

提交回复
热议问题