Answer the question
In order to leave comments, you need to log in
How can a textVIew be programmatically resized?
if (p0.textView?.text == "Item 2")
p0.textView?.text = "text" // текст устанавливается
if(p0.textView?.text == "Item 3")
p0.textView?.setBackgroundColor(p0.textView!!.resources.getColor(R.color.colorPrimary)) // цвет тоже меняется
if(p0.textView?.text == "Item 4")
p0.textView?.height = 256 // а вот размер не меняются.
В чём ошибка?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question