Java 以编程方式列出xmlns中的所有属性

Java 以编程方式列出xmlns中的所有属性,java,android,xml,Java,Android,Xml,给定名称空间: xmlns:android=”http://schemas.android.com/apk/res/android“ 我想列出所有可能的属性(例如,android:id,android:layout\u width,等等),并存储在hashmap(“id”,“layout\u width”,“layout\u height”等)中 有办法吗?IDE从何处获取这些属性以提供建议 谢谢

给定名称空间:

xmlns:android=”http://schemas.android.com/apk/res/android“

我想列出所有可能的属性(例如,
android:id
android:layout\u width
,等等),并存储在hashmap(“id”,“layout\u width”,“layout\u height”等)中

有办法吗?IDE从何处获取这些属性以提供建议

谢谢