In Android, the Canvas class has a method called drawRoundRect() that you can use to draw rounded corners on the edges of a drawn rectangle.

I would like to emphasize that using a value of 1 for both 2nd and 3rd parameters will not give you rounded corners. At least use 3.

Here is a sample code

This code draws a black colored rectangle and fills it using the same color.

Android seems to have so many attributes to their widgets that I think are not really important. This includes the fading edge color of the ScrollView widget.

I think it is annoying. I think it is a nuisance.

The solution is to use the android:overScrollMode attribute with a value of “never” if you do not want to see the fading edge color.

Related Posts Plugin for WordPress, Blogger...