How to Set Text Position in TextView with Compound Drawables?
<p>I have a textview.I have set setCompoundDrawablesWithIntrinsicBounds of textview.After that when I set text to the textfield the text shifted to right.How can I bring the text to the middle.Please help me.</p>

<p>Thanks for help in advance.</p>

<pre><code>Drawable d =new BitmapDrawable(resizedbitmap);   
description.setCompoundDrawablesWithIntrinsicBounds(d,null,null,null);
description.setText("hello");
description.setTypeface(Typeface.DEFAULT_BOLD);
description.setGravity(Gravity.CENTER);
</code></pre>
