I was wondering, what would be the best way to make a gradient background for a LinearLayout in java ( not xml ) ?
Any ideas?
Thanks!
Besides xml you can also use GradientDrawable it has corresponding methods for all xml attributes