use of android.os.Parcelable in project simplefacebook by androidquery.
the class PageIndicator method onSaveInstanceState.
@Override
public Parcelable onSaveInstanceState() {
Parcelable superState = super.onSaveInstanceState();
SavedState ss = new SavedState(superState);
ss.activeDot = mActiveDot;
return ss;
}
use of android.os.Parcelable in project Android-CleanArchitecture by android10.
the class AutoLoadImageView method onSaveInstanceState.
@Override
protected Parcelable onSaveInstanceState() {
Parcelable superState = super.onSaveInstanceState();
SavedState savedState = new SavedState(superState);
savedState.imagePlaceHolderResId = this.imagePlaceHolderResId;
savedState.imageUrl = this.imageUrl;
return savedState;
}
use of android.os.Parcelable in project iosched by google.
the class TaskStackBuilderProxyActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TaskStackBuilder builder = TaskStackBuilder.create(this);
Intent proxyIntent = getIntent();
if (!proxyIntent.hasExtra(EXTRA_INTENTS)) {
finish();
return;
}
for (Parcelable parcelable : proxyIntent.getParcelableArrayExtra(EXTRA_INTENTS)) {
builder.addNextIntent((Intent) parcelable);
}
builder.startActivities();
finish();
}
use of android.os.Parcelable in project AndroidPicker by gzu-liyujiang.
the class ColorPanelView method onSaveInstanceState.
@Override
protected Parcelable onSaveInstanceState() {
Parcelable superState = super.onSaveInstanceState();
SavedState ss = new SavedState(superState);
ss.isBrightnessGradient = mIsBrightnessGradient;
ss.color = mSelectedColor;
return ss;
}
use of android.os.Parcelable in project smooth-app-bar-layout by henrytao-me.
the class SmoothAppBarLayout method onRestoreInstanceState.
@Override
protected void onRestoreInstanceState(Parcelable state) {
Bundle bundle = (Bundle) state;
mRestoreCurrentOffset = bundle.getInt(ARG_CURRENT_OFFSET);
Parcelable superState = bundle.getParcelable(ARG_SUPER);
super.onRestoreInstanceState(superState);
}
Aggregations