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

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

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

origin: mikepenz/FastAdapter

/**
 * overwrite the getItemViewType to correctly return the value from the FastAdapter
 *
 * @param position
 * @return
 */
@Override
public int getItemViewType(int position) {
  return mFastAdapter.getItemViewType(position);
}
origin: mikepenz/FastAdapter

/**
 * overwrite the getItemViewType to correctly return the value from the FastAdapter
 *
 * @param position
 * @return
 */
@Override
public int getItemViewType(int position) {
  return mFastAdapter.getItemViewType(position);
}
origin: mikepenz/FastAdapter

@Test
public void getItemViewType() throws Exception {
  List<TestItem> items = TestDataGenerator.genTestItemList(100);
  itemAdapter.set(items);
  assertThat(adapter.getItemViewType(40)).isEqualTo(-1);
}
origin: mikepenz/FastAdapter

@Test
public void getItemViewType() throws Exception {
  List<TestItem> items = TestDataGenerator.genTestItemList(100);
  itemAdapter.set(items);
  assertThat(adapter.getItemViewType(40)).isEqualTo(-1);
}
com.mikepenz.fastadapterFastAdaptergetItemViewType

Javadoc

finds the int ItemViewType from the IItem which exists at the given position

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,
  • 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
  • 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