Search in sources :

Example 26 with Parcelable

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;
}
Also used : Parcelable(android.os.Parcelable)

Example 27 with Parcelable

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;
}
Also used : Parcelable(android.os.Parcelable)

Example 28 with Parcelable

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();
}
Also used : Intent(android.content.Intent) Parcelable(android.os.Parcelable) TaskStackBuilder(android.support.v4.app.TaskStackBuilder)

Example 29 with Parcelable

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;
}
Also used : Parcelable(android.os.Parcelable)

Example 30 with Parcelable

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);
}
Also used : Bundle(android.os.Bundle) Parcelable(android.os.Parcelable)

Aggregations

Parcelable (android.os.Parcelable)826 Bundle (android.os.Bundle)99 View (android.view.View)85 Intent (android.content.Intent)58 SparseArray (android.util.SparseArray)38 Test (org.junit.Test)31 ArrayList (java.util.ArrayList)26 MenuItem (android.view.MenuItem)23 ImageView (android.widget.ImageView)23 TextView (android.widget.TextView)17 MenuItem (com.actionbarsherlock.view.MenuItem)14 SuppressLint (android.annotation.SuppressLint)13 Dialog (android.app.Dialog)13 MediumTest (android.support.test.filters.MediumTest)13 NameNotFoundException (android.content.pm.PackageManager.NameNotFoundException)12 Paint (android.graphics.Paint)12 MenuView (com.android.internal.view.menu.MenuView)12 RemoteException (android.os.RemoteException)11 Bitmap (android.graphics.Bitmap)10 ShortcutIconResource (android.content.Intent.ShortcutIconResource)9