Blog Archives

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.  

Posted in Android, Tips and Tricks 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,

Posted in Android, Tips and Tricks 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: Now add it in a dev or alike There is some easy way to help you generate CSS3

Posted in Android, Linux, Mac, Tips and Tricks, Windows Tagged with: , , ,