Java Code Examples for android.widget.AdapterView#OnItemLongClickListener
The following examples show how to use
android.widget.AdapterView#OnItemLongClickListener .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MainActivityAppListFragment.java From FreezeYou with Apache License 2.0 | 5 votes |
public void setOnAppListItemLongClickListener(AdapterView.OnItemLongClickListener listener) { mOnItemLongClickListener = listener; if (mUseGridMode) { if (mAppListGridView != null) { mAppListGridView.setOnItemLongClickListener(mOnItemLongClickListener); } } else { if (mAppListListView != null) { mAppListListView.setOnItemLongClickListener(mOnItemLongClickListener); } } }
Example 2
Source File: MyAdapter.java From RemoteControlView with Apache License 2.0 | 4 votes |
public void setOnItemLongClickListener(AdapterView.OnItemLongClickListener listener) { this.mOnItemLongClickListener = listener; }
Example 3
Source File: ItemViewHelper.java From JianshuApp with GNU General Public License v3.0 | 4 votes |
public ItemViewHelper setOnItemLongClickListener(int viewId, AdapterView.OnItemLongClickListener listener) { AdapterView view = this.getView(viewId); view.setOnItemLongClickListener(listener); return this; }
Example 4
Source File: DSL.java From anvil with MIT License | 4 votes |
public static Void onItemLongClick(AdapterView.OnItemLongClickListener arg) { return BaseDSL.attr("onItemLongClick", arg); }
Example 5
Source File: EventHelper.java From MeiZiNews with MIT License | 4 votes |
public static void itemLongClick(AdapterView.OnItemLongClickListener li, AdapterView ... views) { if(views == null || views.length == 0) return; for(AdapterView v : views) v.setOnItemLongClickListener(li); }
Example 6
Source File: EventHelper.java From MeiZiNews with MIT License | 4 votes |
public static void itemLongClick(IPresenter li, AdapterView ... views) { if(!(li instanceof AdapterView.OnItemLongClickListener)) return; itemLongClick((AdapterView.OnItemLongClickListener) li, views); }
Example 7
Source File: HorizontalListView.java From android-project-wo2b with Apache License 2.0 | 4 votes |
@Override public void setOnItemLongClickListener(AdapterView.OnItemLongClickListener listener) { mOnItemLongClicked = listener; }
Example 8
Source File: BaseRecyclerAdapter.java From Android-skin-support with MIT License | 4 votes |
public void setOnItemLongClickListener(AdapterView.OnItemLongClickListener onItemLongClickListener) { mOnItemLongClickListener = onItemLongClickListener; }
Example 9
Source File: ExRecyclerView.java From ExRecyclerView with Apache License 2.0 | 4 votes |
public void setOnItemLongClickListener(AdapterView.OnItemLongClickListener listener) { mOnItemLongClickListener = listener; }
Example 10
Source File: BaseListFragment.java From moVirt with Apache License 2.0 | 4 votes |
protected AdapterView.OnItemLongClickListener getOnItemLongClickListener() { return null; }
Example 11
Source File: RecyclerViewHolder.java From commonadapter with MIT License | 4 votes |
public RecyclerViewHolder setOnItemLongClickListener(int viewId, AdapterView.OnItemLongClickListener listener) { mHolderImpl.setOnItemLongClickListener(viewId, listener); return this; }
Example 12
Source File: EventHelper.java From MVPro with Apache License 2.0 | 4 votes |
public static void itemLongClick(AdapterView.OnItemLongClickListener li, AdapterView ... views) { if(views == null || views.length == 0) return; for(AdapterView v : views) v.setOnItemLongClickListener(li); }
Example 13
Source File: ConversationListView.java From o2oa with GNU Affero General Public License v3.0 | 4 votes |
public void setLongClickListener(AdapterView.OnItemLongClickListener listener) { mConvListView.setOnItemLongClickListener(listener); }
Example 14
Source File: ViewFinder.java From RendererRecyclerViewAdapter with Apache License 2.0 | 4 votes |
@NonNull ViewFinder setOnItemLongClickListener(@IdRes int ID, AdapterView.OnItemLongClickListener listener);
Example 15
Source File: ViewHolderImpl.java From commonadapter with MIT License | 4 votes |
public void setOnItemLongClickListener(int viewId, AdapterView.OnItemLongClickListener listener) { AdapterView view = findViewById(viewId); view.setOnItemLongClickListener(listener); }
Example 16
Source File: BaseViewHolder.java From GoogleVR with Apache License 2.0 | 2 votes |
/** * Sets the listview or gridview's item long click listener of the view * * @param viewId The view id. * @param listener The item long click listener; * @return The BaseViewHolder for chaining. */ public BaseViewHolder setOnItemLongClickListener(int viewId, AdapterView.OnItemLongClickListener listener) { AdapterView view = getView(viewId); view.setOnItemLongClickListener(listener); return this; }
Example 17
Source File: BaseViewHolder.java From demo4Fish with MIT License | 2 votes |
/** * Sets the listview or gridview's item long click listener of the view * * @param viewId The view id. * @param listener The item long click listener; * @return The BaseViewHolder for chaining. */ public BaseViewHolder setOnItemLongClickListener(int viewId, AdapterView.OnItemLongClickListener listener) { AdapterView view = getView(viewId); view.setOnItemLongClickListener(listener); return this; }
Example 18
Source File: BaseViewHolder.java From imsdk-android with MIT License | 2 votes |
/** * Sets the listview or gridview's item long click listener of the view * * @param viewId The view id. * @param listener The item long click listener; * @return The BaseViewHolder for chaining. */ public BaseViewHolder setOnItemLongClickListener(@IdRes int viewId, AdapterView.OnItemLongClickListener listener) { AdapterView view = getView(viewId); view.setOnItemLongClickListener(listener); return this; }
Example 19
Source File: BaseViewHolder.java From basic-adapter with MIT License | 2 votes |
/** * Sets the listview or gridview's item long click listener of the view * * @param viewId The view id. * @param listener The item long click listener; * @return The BaseViewHolder for chaining. */ public BaseViewHolder setOnItemLongClickListener(int viewId, AdapterView.OnItemLongClickListener listener) { AdapterView view = getView(viewId); view.setOnItemLongClickListener(listener); return this; }
Example 20
Source File: BaseViewHolder.java From BaseProject with Apache License 2.0 | 2 votes |
/** * Sets the listview or gridview's item long click listener of the view * * @param viewId The view id. * @param listener The item long click listener; * @return The BaseViewHolder for chaining. */ public BaseViewHolder setOnItemLongClickListener(@IdRes int viewId, AdapterView.OnItemLongClickListener listener) { AdapterView view = getView(viewId); view.setOnItemLongClickListener(listener); return this; }