title: android LinearLayout performance
body: <p>I have these lint warnings in my layout</p>
  
  <pre><code>Nested weights are bad for performance (11 items)
  data.xml has more than 80 views, bad for performance
  </code></pre>
  
  <p>This is my layout:</p>
  
  <p><img src="https://i.stack.imgur.com/vpqOX.jpg" alt="enter image description here"></p>
  
  <p>My layout is to show data. This data is almost shown as a table but some "rows" have to 3 or 4 <code>TextViews</code> and other's have 6 or 7. Since I want some of these <code>TextViews</code> to have the exact same width I've created all of those <code>LinearLayout</code> and use <code>android:weightSum</code> and <code>android:layout_weight</code> to achieve what I want.</p>
  
  <p>Since I cannot remove some of the views (they are all needed to show my data) what can I do to increase performance of my layout?</p>
  
  <p>I've tried to use <code>RelativeLayout</code> but with that I can't use <code>android:weightSum</code> and <code>android:layout_weight</code>.</p>
  
  <p>Thanks.</p>
  
  <p>Favolas</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Sorry. Didn't understand that the XML was so important.</p>
  
  <p>Here is the HUGE code:</p>
  
  <p><a href="http://pastebin.com/0mehGx2z" rel="nofollow noreferrer">http://pastebin.com/0mehGx2z</a></p>
  
  <p>Some more explanations.</p>
  
  <p>I have a database with one table with almost 50 columns.</p>
  
  <p>I make a query to the database and this query returns a Cursor. The result is shown on a <code>ListView</code>. User selects one of these results and is then "send" to this layout were the data is shown on all of those fields</p>