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

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

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

origin: mikepenz/FastAdapter

/**
 * adds a new event hook for an item
 * NOTE: this has to be called before adding the first items, as this won't be called anymore after the ViewHolders were created
 *
 * @param eventHook the event hook to be added for an item
 * @return this
 * @deprecated please use `withEventHook`
 */
@Deprecated
public FastAdapter<Item> withItemEvent(EventHook<Item> eventHook) {
  return withEventHook(eventHook);
}
origin: MuShare/Httper-Android

adapter.withEventHook(new RequestSettingListStickTitle.AddEvent()).withEventHook(new
    RequestSettingListKVItem.RemoveEvent()).withEventHook(new
    RequestSettingListKVItem.textChangeEvent());
adapter.withOnClickListener(new FastAdapter
com.mikepenz.fastadapterFastAdapterwithEventHook

Javadoc

adds a new event hook for an item NOTE: this has to be called before adding the first items, as this won't be called anymore after the ViewHolders were created

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
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Best plugins for Eclipse
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