Create AttributeSet Software Attribute

I want to create program settings from Xml attributes (xml generated programmatically too)

for instance

pref=new CheckBoxPreference(Context context, AttributeSet attrs) 

This seems to be done, but I don’t see how to build an AttributeSet from some arbitrary XML text. Is it possible?

+6
source share

Source: https://habr.com/ru/post/977092/


All Articles