views:

40

answers:

1

Hi,

I've created a custom toolbar using a gradient inside a shape. It looks very nice, but since we only have the option for 3 colors (startColor, centerColor, endColor) it looks very round. I would like to do a glass effect, which requires a sharp change in color in the middle. Basically I need 4 colors (startColor, justabovecenterColor, justbelowcenterColor, endColor). Now I could have two shapes sitting on top of each other to get this effect, but I don't want to do this. I'm getting into some tricky UI customization here and that would be very difficult to manage on different sized screens.

Does anyone know how I can create a glass effect?

A: 

Have you considered using a NinePatch ? This would be a quick and easy way to make a good looking, scalable set of shapes...

cxnull