android.widget.ImageView.onSaveInstanceState()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(9.2k)|赞(0)|评价(0)|浏览(192)

本文整理了Java中android.widget.ImageView.onSaveInstanceState()方法的一些代码示例,展示了ImageView.onSaveInstanceState()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.onSaveInstanceState()方法的具体详情如下:
包路径:android.widget.ImageView
类名称:ImageView
方法名:onSaveInstanceState

ImageView.onSaveInstanceState介绍

暂无

代码示例

代码示例来源:origin: Bearded-Hen/Android-Bootstrap

@Override public Parcelable onSaveInstanceState() {
  Bundle bundle = new Bundle();
  bundle.putParcelable(TAG, super.onSaveInstanceState());
  bundle.putSerializable(BootstrapBrandView.KEY, bootstrapBrand);
  bundle.putBoolean(BorderView.KEY_DISPLAYED, hasBorder);
  bundle.putFloat(BootstrapSizeView.KEY, bootstrapSize);
  return bundle;
}

代码示例来源:origin: android10/Android-CleanArchitecture

@Override protected Parcelable onSaveInstanceState() {
 Parcelable superState = super.onSaveInstanceState();
 SavedState savedState = new SavedState(superState);
 savedState.imagePlaceHolderResId = this.imagePlaceHolderResId;
 savedState.imageUrl = this.imageUrl;
 return savedState;
}

代码示例来源:origin: igreenwood/SimpleCropView

@Override public Parcelable onSaveInstanceState() {
 Parcelable superState = super.onSaveInstanceState();
 SavedState ss = new SavedState(superState);
 ss.mode = this.mCropMode;

代码示例来源:origin: koral--/android-gif-drawable

@Override
public Parcelable onSaveInstanceState() {
  Drawable source = mFreezesAnimation ? getDrawable() : null;
  Drawable background = mFreezesAnimation ? getBackground() : null;
  return new GifViewSavedState(super.onSaveInstanceState(), source, background);
}

代码示例来源:origin: multidots/android-app-common-tasks

@Override
public Parcelable onSaveInstanceState() {
  Bundle bundle = new Bundle();
  bundle.putParcelable("instanceState", super.onSaveInstanceState());
  bundle.putFloat("saveScale", normalizedScale);
  bundle.putFloat("matchViewHeight", matchViewHeight);
  bundle.putFloat("matchViewWidth", matchViewWidth);
  bundle.putInt("viewWidth", viewWidth);
  bundle.putInt("viewHeight", viewHeight);
  matrix.getValues(m);
  bundle.putFloatArray("matrix", m);
  bundle.putBoolean("imageRendered", imageRenderedAtLeastOnce);
  return bundle;
}

代码示例来源:origin: multidots/android-app-common-tasks

@Override
public Parcelable onSaveInstanceState() {
  Bundle bundle = new Bundle();
  bundle.putParcelable("instanceState", super.onSaveInstanceState());
  bundle.putFloat("saveScale", normalizedScale);
  bundle.putFloat("matchViewHeight", matchViewHeight);
  bundle.putFloat("matchViewWidth", matchViewWidth);
  bundle.putInt("viewWidth", viewWidth);
  bundle.putInt("viewHeight", viewHeight);
  matrix.getValues(m);
  bundle.putFloatArray("matrix", m);
  bundle.putBoolean("imageRendered", imageRenderedAtLeastOnce);
  return bundle;
}

代码示例来源:origin: vsona/orz

@Override
protected Parcelable onSaveInstanceState() {
  Bundle bundle = new Bundle();
  bundle.putParcelable(STATE_INSTANCE, super.onSaveInstanceState());
  bundle.putInt(STATE_TYPE, mType);
  bundle.putInt(STATE_BORDER_RADIUS, mBorderRadius);
  return bundle;
}

代码示例来源:origin: fanturbo/Kanzhibo

@Override
protected Parcelable onSaveInstanceState() {
  Bundle bundle = new Bundle();
  bundle.putParcelable(STATE_INSTANCE, super.onSaveInstanceState());
  bundle.putInt(STATE_TYPE, type);
  bundle.putInt(STATE_BORDER_RADIUS, mBorderRadius);
  return bundle;
}

代码示例来源:origin: WuLiFei/SpannableStringDemo

@Override
protected Parcelable onSaveInstanceState() {
  Bundle bundle = new Bundle();
  bundle.putParcelable(STATE_INSTANCE, super.onSaveInstanceState());
  bundle.putInt(STATE_TYPE, type);
  bundle.putInt(STATE_BORDER_RADIUS, mBorderRadius);
  return bundle;
}

代码示例来源:origin: hayribakici/imageprogressbar

@Override
protected Parcelable onSaveInstanceState() {
  final Bundle bundle = new Bundle();
  bundle.putParcelable("super_state", super.onSaveInstanceState());
  bundle.putInt(BUNDLE_CURRENT_PROGRESS, progress);
  if (indicator != null) {
    bundle.putParcelable(BUNDLE_CURRENT_BITMAP, indicator.getCurrentBitmap());
  }
  return bundle;
}

代码示例来源:origin: q805699513/PhotoPicker

@Override public Parcelable onSaveInstanceState() {
 Bundle bundle = new Bundle();
 bundle.putParcelable("instanceState", super.onSaveInstanceState());
 bundle.putFloat("saveScale", normalizedScale);
 bundle.putFloat("matchViewHeight", matchViewHeight);
 bundle.putFloat("matchViewWidth", matchViewWidth);
 bundle.putInt("viewWidth", viewWidth);
 bundle.putInt("viewHeight", viewHeight);
 matrix.getValues(m);
 bundle.putFloatArray("matrix", m);
 bundle.putBoolean("imageRendered", imageRenderedAtLeastOnce);
 return bundle;
}

代码示例来源:origin: HotBitmapGG/MoeQuest

@Override
public Parcelable onSaveInstanceState() {
 Bundle bundle = new Bundle();
 bundle.putParcelable("instanceState", super.onSaveInstanceState());
 bundle.putFloat("saveScale", normalizedScale);
 bundle.putFloat("matchViewHeight", matchViewHeight);
 bundle.putFloat("matchViewWidth", matchViewWidth);
 bundle.putInt("viewWidth", viewWidth);
 bundle.putInt("viewHeight", viewHeight);
 matrix.getValues(m);
 bundle.putFloatArray("matrix", m);
 bundle.putBoolean("imageRendered", imageRenderedAtLeastOnce);
 return bundle;
}

代码示例来源:origin: ckcz123/PKUHelper-Android

@Override
public Parcelable onSaveInstanceState() {
  Bundle bundle = new Bundle();
  bundle.putParcelable("instanceState", super.onSaveInstanceState());
  bundle.putFloat("saveScale", normalizedScale);
  bundle.putFloat("matchViewHeight", matchViewHeight);
  bundle.putFloat("matchViewWidth", matchViewWidth);
  bundle.putInt("viewWidth", viewWidth);
  bundle.putInt("viewHeight", viewHeight);
  matrix.getValues(m);
  bundle.putFloatArray("matrix", m);
  bundle.putBoolean("imageRendered", imageRenderedAtLeastOnce);
  return bundle;
}

代码示例来源:origin: AppLozic/Applozic-Android-SDK

@Override
public Parcelable onSaveInstanceState() {
  Bundle bundle = new Bundle();
  bundle.putParcelable("instanceState", super.onSaveInstanceState());
  bundle.putFloat("saveScale", normalizedScale);
  bundle.putFloat("matchViewHeight", matchViewHeight);
  bundle.putFloat("matchViewWidth", matchViewWidth);
  bundle.putInt("viewWidth", viewWidth);
  bundle.putInt("viewHeight", viewHeight);
  matrix.getValues(m);
  bundle.putFloatArray("matrix", m);
  bundle.putBoolean("imageRendered", imageRenderedAtLeastOnce);
  return bundle;
}

代码示例来源:origin: KosyanMedia/Aviasales-Android-SDK

/**
 * Overridden to save instance state when device orientation changes. This method is called automatically if you assign an id to the RangeSeekBar widget using the {@link #setId(int)} method. Other members of this class than the normalized min and max values don't need to be saved.
 */
@Override
protected Parcelable onSaveInstanceState() {
  final Bundle bundle = new Bundle();
  bundle.putParcelable("SUPER", super.onSaveInstanceState());
  bundle.putDouble("MIN", normalizedMinValue);
  bundle.putDouble("MAX", normalizedMaxValue);
  return bundle;
}

代码示例来源:origin: LanSoSdk/LanSoEditor_advance

/**
 * Overridden to save instance state when device orientation changes. This
 * method is called automatically if you assign an id to the RangeSeekBar
 * widget using the {@link #setId(int)} method. Other members of this class
 * than the normalized min and max values don't need to be saved.
 */
@Override
protected Parcelable onSaveInstanceState() {
  final Bundle bundle = new Bundle();
  bundle.putParcelable("SUPER", super.onSaveInstanceState());
  bundle.putDouble("MIN", normalizedMinValue);
  bundle.putDouble("MAX", normalizedMaxValue);
  return bundle;
}

代码示例来源:origin: vinsol-spree-contrib/spree-android

/**
 * Overridden to save instance state when device orientation changes. This
 * method is called automatically if you assign an id to the RangeSeekBar
 * widget using the {@link #setId(int)} method. Other members of this class
 * than the normalized min and max values don't need to be saved.
 */
@Override
protected Parcelable onSaveInstanceState() {
  final Bundle bundle = new Bundle();
  bundle.putParcelable("SUPER", super.onSaveInstanceState());
  bundle.putDouble("MIN", normalizedMinValue);
  bundle.putDouble("MAX", normalizedMaxValue);
  return bundle;
}

代码示例来源:origin: KosyanMedia/Aviasales-Android-SDK

/**
 * Overridden to save instance state when device orientation changes. This method is called automatically if
 * you assign an id to the RangeSeekBar widget using the {@link #setId(int)} method. Other members of this class
 * than the normalized min and max values don't need to be saved.
 */
@Override
protected Parcelable onSaveInstanceState() {
  final Bundle bundle = new Bundle();
  bundle.putParcelable(SAVE_SUPER, super.onSaveInstanceState());
  bundle.putDouble(SAVE_MIN, mNormalizedMinValue);
  bundle.putDouble(SAVE_MAX, mNormalizedMaxValue);
  return bundle;
}

代码示例来源:origin: andremion/Music-Cover-View

/**
 * {@link SavedState} methods
 */
@Override
protected Parcelable onSaveInstanceState() {
  Parcelable superState = super.onSaveInstanceState();
  SavedState ss = new SavedState(superState);
  ss.shape = getShape();
  ss.trackColor = getTrackColor();
  ss.isRotating = mStartRotateAnimator.isRunning();
  return ss;
}

代码示例来源:origin: ta893115871/VideoEdit

@Override
protected Parcelable onSaveInstanceState() {
  final Bundle bundle = new Bundle();
  bundle.putParcelable("SUPER", super.onSaveInstanceState());
  bundle.putDouble("MIN", normalizedMinValue);
  bundle.putDouble("MAX", normalizedMaxValue);
  bundle.putDouble("MIN_TIME", normalizedMinValueTime);
  bundle.putDouble("MAX_TIME", normalizedMaxValueTime);
  return bundle;
}

相关文章

ImageView类方法