For reference only: Although you are not recommended to access internal resources, and you should be aware that they can be changed or can be deleted by the supplier or with an OS update, you can access them at runtime:
int id = Resources.getSystem().getIdentifier("Switch_track", "styleable", "android");
source share