TextView goes singleLine when setting text on runOnUiThread?

Most likely it has to do with your layout constraints. The reason you are seeing a difference is because in one case (called directly from onCreate() ) the text is set before the views are laid out, so the TextView height is set to match the content inside. In the second case (from the Thread ), the text is set after layout is complete, and TextView does not adjust its size to match new content unless its LayoutParams explicitly tell it to do so.

If you pasted your whole layout we could try to do some more debugging. TextView.setText() ends up notifying the parent container and apparently this behaves differently depending on when it is called.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions