How to remove ResXmlAttribute in AndroidManifest.xml #45
Answered
by
REAndroid
HarukaMomono
asked this question in
Q&A
-
Hello, how can I remove an attribute from an element in the Manifest file, I tried some ways like onRemoved() or set something to null, but I failed. |
Beta Was this translation helpful? Give feedback.
Answered by
REAndroid
Jun 3, 2024
Replies: 1 comment 1 reply
-
I found a way to remove attributes, but it may not be correct: public static void removeAttribute(ResXmlAttribute delete) throws Exception { |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
delete.removeSelf();
See:
AndroidManifestHelper.java