android - Adding Image to an XML Gradient Button -


i have created gradient button using bstyle.xml

<?xml version="1.0" encoding="utf-8"?>  <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > <corners android:radius="14dp"  /> <gradient android:angle="45" android:centerx="35%" android:centercolor="#a8a8a8" android:startcolor="#e8e8e8" android:endcolor="#ebfeff" android:type="linear" /> <padding android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" /> <size android:width="60dp" android:height="55dp" /> <stroke android:width="3dp" android:color="#919089" /> </shape> 

in layout have set background of button this,it works want want put image on top of gradient button(like image button),how can it?


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -