android - How to save XML of absolute layout pragmatically? -


i have built application enable user design his/her business card. have used absolute layout purpose of card designing. problem how enable user edit his/her card after saving card. have save xml of absolute layout edit card? or other method. please me out. in advance.

first of all, should not use absolutelayout.

from documentation:

this class deprecated in api level 3.

not sure needs, better choice relativelayout or framelayout.

if want save result layout, might need store relevant information views in tree , rebuild once needed.

so example, if have textview in card user added, save text, color, margins, etc textview. when needed, create new textview , restore data.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -