我需要使用我的应用程序中的HTML颜色代码.
我在用:
ProgressBar downloadProgressBar = (ProgressBar) findViewById(R.id.downloadprogress);
downloadProgressBar.getIndeterminateDrawable().setColorFilter(
0xFFFF0000,
android.graphics.PorterDuff.Mode.MULTIPLY
);
Run Code Online (Sandbox Code Playgroud)
我需要将HTML颜色代码转换为上面的格式(如0xFFFF0000.)
我怎么做?或者是否有另一种使用上述代码的HTML颜色代码的解决方案?