gradient can be used as background for TextView
list_grad.xml:
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <gradient android:startColor="@color/gradient_start" android:endColor="@color/gradient_end" android:angle="-270" /> </shape> ...
<TextView android:id="@+id/ranking_order" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/list_grad" /> Is it possible to make such a background through shape?
added:
Is it possible to set a complex shape for the ProgressBar, as shown?
I think through the Canvas you can do something similar. If you first draw a progress bar, and then cut out the shape using a mask. But will it not be too difficult?


