How to centralize TextView text with its left drawable vertically

96 views Asked by At

I have a TextView with a bullet point drawable (which is a circle) on the left like below:

    <TextView
    android:id="@+id/lbl_route"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Event Route"
    android:textAllCaps="true"
    android:textColor="@color/drives_event_route_color"
    android:drawableStart="@drawable/blue_bullet"
    android:drawableLeft="@drawable/blue_bullet"
    android:drawablePadding="2dp"
    android:textSize="@dimen/lbl_route_size" />

Currently, the text and the bullet is aligned on top with each other as shown here:

enter image description here

Is there a way to vertically centralize the bullet with the text?

1

There are 1 answers

0
sahu On

You can go for Custom TextView for Reference you can visit : How to make a custom TextView?

If this is helpfull dont forget to vote. thanks.