skydoves code example
Example: skydoves
<com.skydoves.androidribbon.RibbonView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="skydoves"
android:textColor="@android:color/white"
app:ribbon_rotation="-45" // set rotation
app:ribbon_background_color="@color/colorPrimary" // set background color
app:ribbon_ribbonRadius="4dp" // set radius
app:ribbon_drawable="@drawable/ribbon03" // set drawable, not background color
app:ribbon_padding_top="4dp"
app:ribbon_padding_bottom="8dp"/>