Skip to content

Instantly share code, notes, and snippets.

Stephen Vinouze StephenVinouze

Block or report user

Report or block StephenVinouze

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am StephenVinouze on github.
  • I am stephenvinouze (https://keybase.io/stephenvinouze) on keybase.
  • I have a public key whose fingerprint is 8D11 83FB 81BE 988A B81D 6924 3F6D 61C3 CC25 B479

To claim this, I am signing this object:

View CustomViewWithStateRestoration.java
/**
* Custom view that handles view state restoration properly.
* This process is to be used when using non-unique ids which causes the state restoration to lose its reference.
* It basically handles the state restoration by creating a SparseArray for each children views thus avoiding the non-unique id issue.
* @see <a href="http://trickyandroid.com/saving-android-view-state-correctly/">http://trickyandroid.com/saving-android-view-state-correctly/</a>
* Created by StephenVinouze on 05/02/2016.
*/
public class CustomViewWithStateRestoration extends ViewGroup {
public CustomViewWithStateRestoration(Context context) {
You can’t perform that action at this time.