2

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?

Tony Vu
  • 4,251
  • 3
  • 31
  • 38

1 Answers1

0

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.

Community
  • 1
  • 1
sahu
  • 1,188
  • 10
  • 19