Where are the schemas for XML files on an Android project?

对着背影说爱祢 提交于 2019-12-17 15:46:53

问题


Where are the schemas (DTD or XML schema) for the XML files used on Android like AndroidManifest.xml or the layouts?


回答1:


The schemas don't exist as an xml file. Schemas are dependent upon what UI classes your program uses. There's a slightly better discussion here.




回答2:


Generally, defining a namespace in XML doesn't has to be a real existing URL but just a world wide unique String (therefore one prefers using their own URLs). Of course, it's nice if this URL contains the XML-schema (or worse, DTD). It would be also very nice if someone would create Android Ressource Schemata. I could help him as a bachelor thesis in CS. - Prof. Solymosi, Berlin




回答3:


The XML schema doesn't seem to be documented, but there is a useful list of all the layout objects and their permitted attributes here:

http://developer.android.com/reference/android/R.styleable.html#lfields



来源:https://stackoverflow.com/questions/605325/where-are-the-schemas-for-xml-files-on-an-android-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!