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

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -