My question is about Android/Java.
How can I build a XmlPullParser object that can be read with the Xml.asAttributeSet
method?
My main.xml contains among other things:
<org.javaforum.input
android:layout_width="wrap_content"
android:inputType="textEmailAddress"
android:layout_height="wrap_content"
android:ems="10"
android:hint="Enter your E-Mail"
/>
So I want to build a XmlPullParser object that contains the attributes and their values you see above so that in the end I have an AttributeSet object. How can I do this?
I read this question: https://stackoverflow.com/a/56062808/16627950
But I didn't quite get it. Is it even possible to do something like that? Maybe you can explain that to me...