center text on a marker map android
<p>I have no idea to solve this , i have my icon generated wit a drawable and a text with prices, i cant center the text in the middle of a marker [icons with text in left of the globe i need center]</p>

<pre><code>public static Bitmap createTextMarker (Context context, String text) {

    final Resources res = context.getResources();

   final int markerPadding = res.getDimensionPixelOffset(
      R.dimen.activity_maps_marker_padding);

    final IconGenerator iconGenerator = new IconGenerator(context);
    iconGenerator.setBackground(res.getDrawable(R.drawable.ic_marker_price1));
    iconGenerator.setTextAppearance(R.style.ParkingMarkerText);


  iconGenerator.setContentPadding(markerPadding,
       markerPadding + (markerPadding / 3),
     markerPadding, 0);
    return iconGenerator.makeIcon(text);

}
</code></pre>