Android make a edit info fragment
I'm making an Android app. I have to make a fragment where (for example) the user can see his info, like his name, email, birthdate, etc. I want to allow the user to edit this info, but i don't know which approach is better. I thought to put all the infos in some editTexts with setEditable = false and make a button EDIT that when the user click on it I set the visibility of this button to GONE and make the visibility of the hidden button UPDATE to VISIBLE and the editTexts to setEditable = true. When the user click on UPDATE if is all correct i send the updated infos to the backend and I set again the visibility of UPDATE button to GONE and the visibility of button EDIT to VISIBLE and all the editTexts to setEditable = false. Is it a good solution or i can do it better?