Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example;
- public class Foo implements Parcelable {
- //...fields, getter/setters, etc.
- @Override
- public void writeToParcel(....) {
- }
- public static final Parcelable.Creator<T> CREATOR = new ... {
- public T createFromParcel() {...}
- public T[] newArray(int size) {....}
- }
- }
- package com.example.pure;
- public class Foo {
- // ... fields , getters/setters, etc.
- }
- package com.example;
- public class Foo extends com.example.pure.Foo implements Parcelable {
- // all the Parcelable implementation goes here.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement