How to set surface+x%primary colors in xml layout

177 Views Asked by At

In official Material Design 3 resources do not specify how to use these (surface+x%primary) colors in xml layouts.

I tried using these colors in code:

protected void onCreate(Bundle savedInstanceState) {
   ...
   getWindow().setNavigationBarColor(SurfaceColors.SURFACE_2.getColor(this));
   ...
}
0

There are 0 best solutions below