Change gravity of image drawable in textview Change gravity of image drawable in textview android android

Change gravity of image drawable in textview


  1. Try using android:gravity="top"

    if it didnt work then go with negative margin like this

  2. android:drawablePadding="-20sp"

  3. Another alternative way is to take an ImageView beside TextView inside LinearLayout so you can apply gravity


Use checkbox instead of textview Drawable, and add custom drawable where you can use this image


I suggest you put image to imageview. Put the imageview and the textview in a Linearlayout and set gravity to top. Reduce the size of text and image too.