Fix the issue of Resouces.getXml(int)

Fix the issue that `Resources.getXml(int)` does not support resource ids other than xml resources. According to the original (Android SDK's) implementation, it should support not only xml resources, but also other resources whose file types are xml - e.g. layout, menu, drawable, anim and color. Test cases have been added accordingly.