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

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

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

origin: mikepenz/FastAdapter

@Override
public void move(int fromPosition, int toPosition, int preItemCount) {
  Item item = mItems.get(fromPosition - preItemCount);
  mItems.remove(fromPosition - preItemCount);
  mItems.add(toPosition - preItemCount, item);
  if (getFastAdapter() != null) {
    getFastAdapter().notifyAdapterItemMoved(fromPosition, toPosition);
  }
}
origin: mikepenz/FastAdapter

@Override
public void onMoved(int fromPosition, int toPosition) {
  adapter.getFastAdapter().notifyAdapterItemMoved(adapter.getFastAdapter().getPreItemCountByOrder(adapter.getOrder()) + fromPosition, toPosition);
}
origin: mikepenz/ItemAnimators

items.remove(position + 1);
items.add(position + 3, i);
mFastAdapter.notifyAdapterItemMoved(position + 1, position + 3);
com.mikepenz.fastadapterFastAdapternotifyAdapterItemMoved

Javadoc

wraps notifyItemMoved

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

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for Android Studio
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