Wednesday, May 12, 2010

Creating backgrounds: it's easy (part 2)

Here is the first topic about creating simple Android backgrounds.

What about gradients?


 It's easy - just use gradient XML tag:

<shape xmlns:android="http://schemas.android.com/apk/res/android">
   
<gradient
       
android:startColor="#F000FFFF"
        android:centerColor
="#40004444"
        android:endColor
="#00000000"
        android:angle
="90" />
   
<corners android:radius="8dp" />
</shape>

No comments:

Post a Comment