congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
FastAdapter.onBindViewHolder
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: mikepenz/FastAdapter

/**
 * the onBindViewHolder is managed by the FastAdapter so forward this correctly
 *
 * @param holder
 * @param position
 */
@Override
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
  mFastAdapter.onBindViewHolder(holder, position);
}
origin: mikepenz/FastAdapter

/**
 * the onBindViewHolder is managed by the FastAdapter so forward this correctly
 *
 * @param holder
 * @param position
 * @param payloads
 */
@Override
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position, List payloads) {
  mFastAdapter.onBindViewHolder(holder, position, payloads);
}
origin: mikepenz/FastAdapter

/**
 * the onBindViewHolder is managed by the FastAdapter so forward this correctly
 *
 * @param holder
 * @param position
 */
@Override
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
  mFastAdapter.onBindViewHolder(holder, position);
}
origin: mikepenz/FastAdapter

/**
 * the onBindViewHolder is managed by the FastAdapter so forward this correctly
 *
 * @param holder
 * @param position
 * @param payloads
 */
@Override
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position, List payloads) {
  mFastAdapter.onBindViewHolder(holder, position, payloads);
}
origin: mikepenz/FastAdapter

  @Test
  public void withBindViewHolderListener_OnBindViewHolder_Callback() throws Exception {
    OnBindViewHolderListener listener = mock(OnBindViewHolderListener.class);
    RecyclerView.ViewHolder holder = new RecyclerView.ViewHolder(mock(View.class)) {};
    adapter.withOnBindViewHolderListener(listener);

    adapter.onBindViewHolder(holder, 10, new ArrayList());

    verify(listener, only()).onBindViewHolder(holder, 10, new ArrayList());
  }
}
origin: mikepenz/FastAdapter

@Test
public void withBindViewHolderListener_OnBindViewHolder_Callback() throws Exception {
  OnBindViewHolderListener listener = mock(OnBindViewHolderListener.class);
  RecyclerView.ViewHolder holder = new RecyclerView.ViewHolder(mock(View.class)) {
  };
  adapter.withOnBindViewHolderListener(listener);
  adapter.onBindViewHolder(holder, 10, new ArrayList<>());
  verify(listener, only()).onBindViewHolder(holder, 10, new ArrayList<>());
}
com.mikepenz.fastadapterFastAdapteronBindViewHolder

Javadoc

Binds the data to the created ViewHolder and sets the listeners to the holder.itemView Note that you should use the `onBindViewHolder(RecyclerView.ViewHolder holder, int position, List payloads` as it allows you to implement a more efficient adapter implementation

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

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • getApplicationContext (Context)
  • Path (java.nio.file)
  • Permission (java.security)
    Legacy security code; do not use.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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