android - How to create gradient border on listview item? -


i have gradient border bellow image: corner of listview item:

enter image description here

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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -