Tabnine Logo
FastAdapter.saveInstanceState
Code IndexAdd Tabnine to your IDE (free)

How to use
saveInstanceState
method
in
com.mikepenz.fastadapter.FastAdapter

Best Java code snippets using com.mikepenz.fastadapter.FastAdapter.saveInstanceState (Showing top 12 results out of 315)

origin: mikepenz/FastAdapter

/**
 * add the values to the bundle for saveInstanceState
 *
 * @param savedInstanceState If the activity is being re-initialized after
 *                           previously being shut down then this Bundle contains the data it most
 *                           recently supplied in Note: Otherwise it is null.
 * @return the passed bundle with the newly added data
 */
public Bundle saveInstanceState(@Nullable Bundle savedInstanceState) {
  return saveInstanceState(savedInstanceState, "");
}
origin: mikepenz/FastAdapter

@Override
protected void onSaveInstanceState(Bundle outState) {
  //add the values which need to be saved from the adapter to the bundle
  outState = fastAdapter.saveInstanceState(outState);
  super.onSaveInstanceState(outState);
}
origin: mikepenz/MaterialDrawer

/**
 * add the values to the bundle for saveInstanceState
 *
 * @param savedInstanceState
 * @return
 */
public Bundle saveInstanceState(Bundle savedInstanceState) {
  if (savedInstanceState != null) {
    if (!mDrawerBuilder.mAppended) {
      savedInstanceState = mDrawerBuilder.mAdapter.saveInstanceState(savedInstanceState, BUNDLE_SELECTION);
      savedInstanceState.putInt(BUNDLE_STICKY_FOOTER_SELECTION, mDrawerBuilder.mCurrentStickyFooterSelection);
      savedInstanceState.putBoolean(BUNDLE_DRAWER_CONTENT_SWITCHED, switchedDrawerContent());
    } else {
      savedInstanceState = mDrawerBuilder.mAdapter.saveInstanceState(savedInstanceState, BUNDLE_SELECTION_APPENDED);
      savedInstanceState.putInt(BUNDLE_STICKY_FOOTER_SELECTION_APPENDED, mDrawerBuilder.mCurrentStickyFooterSelection);
      savedInstanceState.putBoolean(BUNDLE_DRAWER_CONTENT_SWITCHED_APPENDED, switchedDrawerContent());
    }
  }
  return savedInstanceState;
}
origin: mikepenz/FastAdapter

@Override
protected void onSaveInstanceState(Bundle outState) {
  //add the values which need to be saved from the adapter to the bundle
  outState = fastAdapter.saveInstanceState(outState);
  super.onSaveInstanceState(outState);
}
origin: mikepenz/FastAdapter

@Override
protected void onSaveInstanceState(Bundle outState) {
  //add the values which need to be saved from the adapter to the bundle
  outState = fastAdapter.saveInstanceState(outState);
  super.onSaveInstanceState(outState);
}
origin: mikepenz/FastAdapter

@Override
protected void onSaveInstanceState(Bundle outState) {
  //add the values which need to be saved from the adapter to the bundle
  outState = mFastAdapter.saveInstanceState(outState);
  super.onSaveInstanceState(outState);
}
origin: mikepenz/FastAdapter

@Override
protected void onSaveInstanceState(Bundle outState) {
  //add the values which need to be saved from the adapter to the bundle
  outState = fastAdapter.saveInstanceState(outState);
  //We need to persist our sorting strategy between orientation changes
  outState.putInt("sorting_strategy", sortingStrategy);
  super.onSaveInstanceState(outState);
}
origin: mikepenz/FastAdapter

@Override
protected void onSaveInstanceState(Bundle outState) {
  //add the values which need to be saved from the adapter to the bundle
  outState = fastAdapter.saveInstanceState(outState);
  super.onSaveInstanceState(outState);
}
origin: mikepenz/FastAdapter

@Override
protected void onSaveInstanceState(Bundle outState) {
  //add the values which need to be saved from the adapter to the bundle
  outState = mFastAdapter.saveInstanceState(outState);
  super.onSaveInstanceState(outState);
}
origin: mikepenz/FastAdapter

@Override
protected void onSaveInstanceState(Bundle outState) {
  //add the values which need to be saved from the drawer to the bundle
  outState = mResult.saveInstanceState(outState);
  //add the values which need to be saved from the adapter to the bundle
  outState = mFastAdapter.saveInstanceState(outState);
  super.onSaveInstanceState(outState);
}
origin: mikepenz/MaterialDrawer

originalDrawerState = getAdapter().saveInstanceState(new Bundle());
mDrawerBuilder.mExpandableExtension.collapse(false);
originalDrawerItems = getDrawerItems();
origin: mikepenz/ItemAnimators

@Override
protected void onSaveInstanceState(Bundle outState) {
  //add the values which need to be saved from the drawer to the bundle
  outState = mResult.saveInstanceState(outState);
  //add the values which need to be saved from the adapter to the bundel
  outState = mFastAdapter.saveInstanceState(outState);
  super.onSaveInstanceState(outState);
}
com.mikepenz.fastadapterFastAdaptersaveInstanceState

Javadoc

add the values to the bundle for saveInstanceState

Popular methods of FastAdapter

  • with
    creates a new FastAdapter with the provided adapters if adapters is null, a default ItemAdapter is d
  • getItem
    gets the IItem by a position, from all registered adapters
  • getItemCount
    calculates the total ItemCount over all registered adapters
  • getExtension
  • getAdapter
    Gets the adapter for the given position
  • getPosition
    Searches for the given item and calculates its global position
  • getSelections
  • withSelectable
    Set to true if you want the items to be selectable. By default, no items are selectable
  • addExtension
  • getPreItemCountByOrder
    calculates the item count up to a given (excluding this) order number
  • getRelativeInfo
    Internal method to get the Item as ItemHolder which comes with the relative position within its adap
  • notifyItemChanged
  • getRelativeInfo,
  • notifyItemChanged,
  • select,
  • withSavedInstanceState,
  • addAdapter,
  • getItemId,
  • getItemViewType,
  • getPreItemCount,
  • getSelectedItems

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now