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

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

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

origin: mikepenz/FastAdapter

/**
 * the onCreateViewHolder is managed by the FastAdapter so forward this correctly
 *
 * @param parent
 * @param viewType
 * @return
 */
@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
  return mFastAdapter.onCreateViewHolder(parent, viewType);
}
origin: mikepenz/FastAdapter

/**
 * the onCreateViewHolder is managed by the FastAdapter so forward this correctly
 *
 * @param parent
 * @param viewType
 * @return
 */
@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
  return mFastAdapter.onCreateViewHolder(parent, viewType);
}
origin: mikepenz/FastAdapter

  @Test
  public void testAddPreviouslyFilledAdapterPropagatesPossibleTypesToParentFastAdapter() {
    final TestItem testItem = new TestItem("example name");
    ItemAdapter<TestItem> itemAdapter = new ItemAdapter<>();
    itemAdapter.add(testItem);
    FastAdapter<TestItem> adapter = new FastAdapter<>();
    adapter.addAdapter(0, itemAdapter);
    final ViewGroup dummyParent = new FrameLayout(RuntimeEnvironment.application);
    adapter.onCreateViewHolder(dummyParent, testItem.getType());
  }
}
com.mikepenz.fastadapterFastAdapteronCreateViewHolder

Javadoc

Creates the ViewHolder by the viewType

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
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
  • runOnUiThread (Activity)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Collectors (java.util.stream)
  • Github Copilot 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