Android SDK - How can I change the default stroke color?

Question
How can I change the default stroke color?

Answer
We recommend that you use the color constants from the Android SDK in this way:
android.graphics.Color.BLACK from the package "android.graphics" (if you want to have the stroke color set to black).

It is also possible to use the StyleUtils class that has a static RGB method:

public static int RGB(int r, int g, int b)

Using the latter it is possible to set any RGB color.

Applies To
Android SDK

Was this article useful? Thanks for the feedback There was a problem submitting your feedback. Please try again later.