'i am using app:drawableEndCompat to place vector image and attach where Textview border ends

in android xml i want to attach drawable image to textview and place end of the textview border here is my code

<TextView android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:layout_marginTop="10dp"

        android:background="@drawable/bg_rectangle"

        android:gravity="center"

        android:text="@string/send_info"

        android:textAppearance="@style/send_info"

        app:drawableEndCompat="@drawable/ic_head_part" />

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source