Created
July 6, 2019 11:06
-
-
Save matthew-carroll/caf24a74fcc635da6a7436fba9c78b58 to your computer and use it in GitHub Desktop.
Enables state saving for a custom View in Android.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyView extends View { | |
public MyView(Context context) { | |
setSaveEnabled(true); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment