title: Real time data visualization in Android
body: <p>I'm working on an audio vu meter and I'd like to get something like the image shown below, with audio amplitude shown in real-time.</p>
  
  <p>I know how to get the audio amplitude for each channel, but I'm not sure how to do a fast enough display of the colored rectangles.</p>
  
  <p>My first idea is to of have a <code>View</code> with a background color for each rectangle and showing/hiding it according to the amplitude.</p>
  
  <p>Has anybody already tried that? Would it be fast enough for displaying the amplitude every 50 or 100ms?</p>
  
  <p>What's the fastest way of achieving that?</p>
  
  <p>Thanks you</p>
  
  <p><img src="https://i.stack.imgur.com/xzsvA.png" alt="enter image description here"></p>