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

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

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

origin: mikepenz/MaterialDrawer

/**
 * get the adapter (null safe)
 *
 * @return the FastAdapter used with this drawer
 */
protected FastAdapter<IDrawerItem> getAdapter() {
  if (mAdapter == null) {
    mAdapter = FastAdapter.with(Arrays.asList(mHeaderAdapter, mItemAdapter, mFooterAdapter), Arrays.<IAdapterExtension<IDrawerItem>>asList(mExpandableExtension));
    mAdapter.withSelectable(true);
    mAdapter.withMultiSelect(false);
    mAdapter.withAllowDeselection(false);
    mAdapter.setHasStableIds(mHasStableIds);
  }
  return mAdapter;
}
origin: mikepenz/MaterialDrawer

mAdapter.withMultiSelect(mMultiSelect);
if (mMultiSelect) {
  mAdapter.withSelectOnLongClick(false);
origin: mikepenz/FastAdapter

mFastAdapter.withMultiSelect(true);
mFastAdapter.withSelectOnLongClick(true);
mFastAdapter.withSelectionListener(new ISelectionListener<SimpleItem>() {
origin: mikepenz/FastAdapter

mFastAdapter.withMultiSelect(true);
mFastAdapter.withSelectOnLongClick(true);
mFastAdapter.withOnPreClickListener(new OnClickListener<IItem>() {
origin: mikepenz/FastAdapter

.addExtension(mExpandableExtension)
.withSelectable(true)
.withMultiSelect(true)
.withSelectOnLongClick(true)
.withOnPreClickListener(new OnClickListener<IItem>() {
origin: mikepenz/FastAdapter

mFastAdapter.withMultiSelect(true);
mFastAdapter.withSelectOnLongClick(false);
selectExtension = mFastAdapter.getExtension(SelectExtension.class);
origin: mikepenz/ItemAnimators

mFastAdapter.withMultiSelect(true);
mFastAdapter.withSelectOnLongClick(false);
com.mikepenz.fastadapterFastAdapterwithMultiSelect

Javadoc

Enable this if you want multiSelection possible in the list

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

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • startActivity (Activity)
  • getExternalFilesDir (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • String (java.lang)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • From CI to AI: The AI layer in your organization
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