I am trying to assign a color from my colors.xml file to the my tableLayout
with the following code:
tabLayout.setSelectedTabIndicatorColor(Color.parseColor(getResources().getString(R.color.colorMain)));
But I get an error: "Expected resource of type string..."
I have tried different things from other threads
1. Changed my minSdkVersion in gradle and Android Studio to 23
2. Tried to disable lint rule in your build.gradle discribed here.
None of them worked and I still get the error message.