android - How to create gradient border on listview item? -
i have gradient border bellow image: corner of listview item:
the gray part backgorud, white listview item. how create gradient border effect?
thanks!
try this..
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <gradient android:startcolor="#somegradientbegincolor" android:endcolor="#somegradientendcolor" android:angle="270"/> <corners android:bottomrightradius="7dp" android:bottomleftradius="7dp" android:topleftradius="7dp" android:toprightradius="7dp"/> </shape>
Comments
Post a Comment