I have a layout where users can add buttons and place them where they want. I want to allow the user to save their layout so that it is loaded the next time they open the app. so can i save the updated xml file ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you will need to Create layout at rumTime , because you can’t edit anything into your xml . all you have is its resource reference R.layout.layout_name ;
So after creating layout RumTime , let your user redesign it….and save new coordinates/settings into persistent storage like shared preference or database/file . when later you when need updated layout pick these settings up and use them .