i want to get and set the value of controls define in XML Layout file at run time and save that value in another XML file .
i want to modify the state of the screen objects, including those declared
in XML, at run time.
Thanks and Regards
RizN81
i want to get and set the value of controls define in XML Layout
Share
The easiest thing to do is to define the values you want to capture separately from the layout files. Then you can retrieve the values directly. For instance:
some layout file
some file in res/values
In view code
You can then save
leftPaddinganddefaultCheckedin an XML file (but not a resource file!), in shared preferences, etc. But I think it would be easiest to just retrieve the resource value directly each time you need it.