I have rectangle Cardview
how to add to my cardview something as an arrow or triangle (it can be with no dot)
like as on the right side of this image?
<androidx.cardview.widget.CardView
android:id="@+id/cardView"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:layout_marginTop="2dp"
android:layout_gravity="start"
android:layout_marginRight="2dp"
android:background="@android:color/transparent">
<TextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:layout_gravity="center"
........
android:text="asdasdasdsdasdaadsaasd"
/>
</androidx.cardview.widget.CardView>
color and text of cardview I'm applying via adapter and arrow color should be the same


Create a vector drawable of the required shape, bg_img.xml. You can use this site to create vector from an image. However, this is not always accurate, so once xml is generated you can try playing with it, to adjust.
Set this as background to your textView