Tag: gradient

Andorid Programmatic Shapes With Gradient

You can fairly easy make rounded rectangles in Android by using the GradientDrawable class GradientDrawable gd = new GradientDrawable(); gd.setColor(Color.RED); gd.setCornerRadius(10); gd.setStroke(2, Color.WHITE); Take a further look at this blogpost¬†for more examples.  

Tagged with: , ,

Android Get A Transparent Gradient Or Color

Use the 8-digit color value, e.g. , where the first two characters are the alpha value. 00 is full transparent and FF is fully opague. start = Color.parseColor(“#e2102e”); end = Color.parseColor(“#fc1233”); GradientDrawable gd = new GradientDrawable(Orientation.TOP_BOTTOM, new int[] { start,

Tagged with: , ,

CSS3 Gradient Generator

Using gradient color can be cool and be completed with css style. Making a gradient color in css can be completed as following: [sourcecode language=”css”] <script type="text/css"> .txt { background-image: linear-gradient(bottom, rgb(132,170,193) 15%, rgb(159,204,232) 58%, rgb(191,245,255) 79%); background-image: -o-linear-gradient(bottom, rgb(132,170,193)

Tagged with: , , ,