title: Android Pixel Perfect Alignment
body: <p><img src="https://i.stack.imgur.com/6wBq8.jpg" alt="enter image description here"></p>
  
  <p>I'm creating a bar at the top of my app much like the one above. </p>
  
  <p>The graphics are embedded into the background and the numbers that represent the level etc is using TextViews. </p>
  
  <p>As you can see the <em>TextView</em> has to be <em>pixel(dp)</em> perfect to fit in the center of the white bar thingy. With some margins or padding i can achieve that. </p>
  
  <p><strong><em>But how do games like that keep the same pixel perfect across all devices?</em></strong> </p>
  
  <p>I know about <em>resource qualifiers</em> and such but some devices within the same bucket have different sizes. </p>
  
  <p><strong><em>Is there a good way or trick to achieve the perfect centering across most devices?</em></strong></p>