android - How to get more control over gradients -
i have following drawable:
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient android:startcolor="#2f2f2f" android:endcolor="#5a5a5a" android:angle="90" android:dither="true" /> </shape>
is there anyway start startcolor @ 50% or endcolor @ 50%?
are there links show me of attributes can apply gradient?
these pages show attributes can apply gradient.
http://developer.android.com/guide/topics/resources/drawable-resource.html#shape
http://developer.android.com/reference/android/graphics/drawable/gradientdrawable.html
to in middle asking, try experimenting android:centercolor
attribute.
Comments
Post a Comment