I can not deal with SharedPreferences. It is necessary that when you click on the button, it hides and in the SharedPreferences, for example, the number 1 is recorded.
Upon entering the application, the value from SharedPreferences would be read again, and if there is a value of 1, the button would not be shown.