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

java - Incorrect order of records in M-M relationship in hibernate -

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -