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

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

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

origin: mikepenz/FastAdapter

/**
 * deselects all selections
 */
public void deselect() {
  mFastAdapter.recursive(new AdapterPredicate<Item>() {
    @Override
    public boolean apply(@NonNull IAdapter<Item> lastParentAdapter, int lastParentPosition, Item item, int position) {
      deselect(item);
      return false;
    }
  }, false);
  mFastAdapter.notifyDataSetChanged();
}
origin: mikepenz/FastAdapter

/**
 * select all items
 *
 * @param considerSelectableFlag true if the select method should not select an item if its not selectable
 */
public void select(final boolean considerSelectableFlag) {
  mFastAdapter.recursive(new AdapterPredicate<Item>() {
    @Override
    public boolean apply(@NonNull IAdapter<Item> lastParentAdapter, int lastParentPosition, Item item, int position) {
      select(lastParentAdapter, item, -1, false, considerSelectableFlag);
      return false;
    }
  }, false);
  mFastAdapter.notifyDataSetChanged();
}
origin: mikepenz/FastAdapter

/**
 * wraps notifyDataSetChanged
 */
public void notifyAdapterDataSetChanged() {
  // handle our extensions
  for (IAdapterExtension<Item> ext : mExtensions.values()) {
    ext.notifyAdapterDataSetChanged();
  }
  cacheSizes();
  notifyDataSetChanged();
}
origin: mikepenz/FastAdapter

/**
 * deselects all selections
 */
public void deselect() {
  SelectExtension<Item> selectExtension = mFastAdapter.getExtension(SelectExtension.class);
  if (selectExtension == null) {
    return;
  }
  for (Item item : AdapterUtil.getAllItems(mFastAdapter)) {
    selectExtension.deselect(item);
  }
  mFastAdapter.notifyDataSetChanged();
}
origin: mikepenz/FastAdapter

/**
 * select all items
 *
 * @param considerSelectableFlag true if the select method should not select an item if its not selectable
 */
public void select(boolean considerSelectableFlag) {
  SelectExtension<Item> selectExtension = mFastAdapter.getExtension(SelectExtension.class);
  if (selectExtension == null) {
    return;
  }
  for (Item item : AdapterUtil.getAllItems(mFastAdapter)) {
    selectExtension.select(item, considerSelectableFlag);
  }
  mFastAdapter.notifyDataSetChanged();
}
origin: mikepenz/FastAdapter

  fastAdapter.notifyDataSetChanged();
  return true;
case R.id.item_sort_asc:
com.mikepenz.fastadapterFastAdapternotifyDataSetChanged

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,
  • saveInstanceState,
  • select,
  • withSavedInstanceState,
  • addAdapter,
  • getItemId,
  • getItemViewType,
  • getPreItemCount,
  • getSelectedItems

Popular in Java

  • Creating JSON documents from java classes using gson
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • putExtra (Intent)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JButton (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • CodeWhisperer alternatives
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