You cannot put a number in int, I get -1979711488, which is # 8A000000, i.e. black with 138 alpha. You can get all parts of the color as follows:
int color = getCurrentTextColor(); int a = Color.alpha(color); int r = Color.red(color); int g = Color.green(color); int b = Color.blue(color);
It is really strange why the text color by default is not a solid color, but rather black with an alpha value, since it is more expensive for the system.
source share