Change View to use getResources and getIdentifier instead of R.