Sam:
I have been following the answer for this question Making a Triangle Shape using xml definitions?.
I need to create a Triangle that looks like arrow to be placed at the end of selected list item (see attached photos).
I have managed to get it working by do the following:
shape_diamond.xml
-----------------
And create a new selector
selector_list_item.xml
----------------------- android:height="28dp"
android:right="-14dp"
android:gravity="center|right"
android:drawable="@drawable/shape_diamond" />- android:height="28dp"
android:right="-14dp"
android:gravity="center|right"
android:drawable="@drawable/shape_diamond" />- android:height="28dp"
android:right="-14dp"
android:gravity="center|right"
android:drawable="@drawable/shape_diamond" />
Everything works well for API 23+ because it supports "WIDTH" attribute. But it doesn't work in API below 23.
Does anyone know how to make it work for API that is below API 23 which does not support the "WIDTH" attribute?
Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE