title: Get exact width of a textview in pixel programmatically (Android)
body: <p>Using android, does anybody know how to get the exact width of a textview, in pixel, before it's displayed on the screen ? (programmatically)
  I've search a lot on the internet but I didn't found anything working.</p>
  
  <p>Thank you</p>
  
  <p>Links of the post I tried :
  <li><ol><a href="https://stackoverflow.com/questions/3630086/how-to-get-string-width-on-android">With a Paint</a></ol><ol><a href="https://stackoverflow.com/questions/24359538/how-to-find-the-text-areaheight-width-of-textview-programmatically-in-android">With measure</a></ol>
  <ol><a href="https://stackoverflow.com/questions/6232541/android-measuretext-return-pixels-based-on-scaled-pixels">With density</a></ol></li></p>