I have two controls: TextView
and LinearLayout
. Both have a width specified in the wrap_content
interface wrap_content
. Then in the code ( OnPostCreate
) I want to change the width of the LinearLayout
and make it the same as the TextView
. However, I do not succeed, because the width of the TextView
displayed as -2.
How can I do?