title: How to set match_parent and wrap_content depending on condition in xml?
body: <p>I need to set the layout_height of TextView depending on some condition. I have tried with importing LayoutParams but it did not work. Any ideas?</p>
  
  <pre><code>android:layout_height="condition ? wrap_content : match_parent"
  </code></pre>
  
  <p><strong>I need to do it in xml not with code</strong></p>