G
G
GyperPupok2021-05-01 21:03:47
Java
GyperPupok, 2021-05-01 21:03:47

How to save the visibility state when the application closes?

Hello, how to save the visibility state?
For example, I press a button in the first activity and the button in the second activity changes the visibility attribute from gone to visible, but when the application is closed, everything is reset.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Developer, 2021-05-01
@samodum

Write state in SharedPreferences
https://developer.android.com/reference/android/co...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question