tvMyDimonds.setText(diamonds);Paint paint = tvMyDimonds.getPaint();int textWidth = (int)paint.measureText(diamonds);