I try to use the GradientDrawable to set a gradient to some backgrounds and buttons. Sadly the documentation is not very detailed.
What are the main attributes to conf
use this xml as background to the imageview.
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient android:angle="90" android:startColor="#7c0000" android:endColor="#A71C1C"/> </shape>
thats it.