Java Code Examples for android.support.v7.widget.RecyclerView#OnItemTouchListener

The following examples show how to use android.support.v7.widget.RecyclerView#OnItemTouchListener . 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: PickerController.java    From nono-android with GNU General Public License v3.0 6 votes vote down vote up
PickerController(PickerActivity pickerActivity, ActionBar actionBar, RecyclerView recyclerView, String bucketTitle) {
    this.pickerActivity = pickerActivity;
    this.recyclerView = recyclerView;
    this.actionBar = actionBar;
    this.bucketTitle = bucketTitle;

    OnItemTouchListener = new RecyclerView.OnItemTouchListener() {
        @Override
        public boolean onInterceptTouchEvent(RecyclerView rv, MotionEvent e) {
            return true;
        }

        @Override
        public void onTouchEvent(RecyclerView rv, MotionEvent e) {

        }

        @Override
        public void onRequestDisallowInterceptTouchEvent(boolean disallowIntercept) {

        }
    };
}
 
Example 2
Source File: YCRefreshView.java    From YCRefreshView with Apache License 2.0 4 votes vote down vote up
/**
 * 移除条目触摸监听器
 */
public void removeOnItemTouchListener(RecyclerView.OnItemTouchListener listener) {
    mRecyclerView.removeOnItemTouchListener(listener);
}
 
Example 3
Source File: HTRefreshRecyclerView.java    From ht-refreshrecyclerview with MIT License 4 votes vote down vote up
@Override
public void addOnItemTouchListener(RecyclerView.OnItemTouchListener listener) {
    mRecyclerViewProxy.addOnItemTouchListener(listener);
}
 
Example 4
Source File: HTRefreshRecyclerView.java    From ht-refreshrecyclerview with MIT License 4 votes vote down vote up
@Override
public void removeOnItemTouchListener(RecyclerView.OnItemTouchListener listener) {
    mRecyclerViewProxy.removeOnItemTouchListener(listener);
}
 
Example 5
Source File: HTBaseRecyclerView.java    From ht-refreshrecyclerview with MIT License 4 votes vote down vote up
@Override
public void removeOnItemTouchListener(RecyclerView.OnItemTouchListener listener) {
    mRecyclerView.removeOnItemTouchListener(listener);
}
 
Example 6
Source File: HTBaseRecyclerView.java    From ht-refreshrecyclerview with MIT License 4 votes vote down vote up
@Override
public void addOnItemTouchListener(RecyclerView.OnItemTouchListener listener) {
    mRecyclerView.addOnItemTouchListener(listener);
}
 
Example 7
Source File: RecyclerWidget.java    From relight with Apache License 2.0 4 votes vote down vote up
public RecyclerWidget<V> addOnItemTouchListener(@NonNull RecyclerView.OnItemTouchListener listener) {
    view.addOnItemTouchListener(listener);
    return self();
}
 
Example 8
Source File: BaseListFragment.java    From FriendBook with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void addOnItemTouchListener(RecyclerView.OnItemTouchListener listener) {
    recyclerView.addOnItemTouchListener(listener);
}
 
Example 9
Source File: RecyclerWidget.java    From relight with Apache License 2.0 4 votes vote down vote up
public RecyclerWidget<V> removeOnItemTouchListener(@NonNull RecyclerView.OnItemTouchListener listener) {
    view.removeOnItemTouchListener(listener);
    return self();
}
 
Example 10
Source File: YCRefreshView.java    From YCRefreshView with Apache License 2.0 2 votes vote down vote up
/**
 * 添加条目触摸监听器
 * @param listener              OnItemTouchListener监听器
 */
public void addOnItemTouchListener(RecyclerView.OnItemTouchListener listener) {
    mRecyclerView.addOnItemTouchListener(listener);
}
 
Example 11
Source File: HTRefreshRecyclerViewInterface.java    From ht-refreshrecyclerview with MIT License 2 votes vote down vote up
/**
 * 移除{@link RecyclerView.OnItemTouchListener},将不再拦截触摸事件<br/>
 * 详细描述{@link RecyclerView#removeOnItemTouchListener(RecyclerView.OnItemTouchListener)}
 * @param listener item触摸事件监听对象
 */
void removeOnItemTouchListener(RecyclerView.OnItemTouchListener listener);
 
Example 12
Source File: HTRefreshRecyclerViewInterface.java    From ht-refreshrecyclerview with MIT License 2 votes vote down vote up
/**
 * 添加{@link RecyclerView.OnItemTouchListener},监听触摸事件<br/>
 * 详细描述{@link RecyclerView#addOnItemTouchListener(RecyclerView.OnItemTouchListener)}
 * @param listener item触摸事件监听对象
 */
void addOnItemTouchListener(RecyclerView.OnItemTouchListener listener);
 
Example 13
Source File: EasyRecyclerView.java    From fangzhuishushenqi with Apache License 2.0 2 votes vote down vote up
/**
 * Remove the onItemTouchListener for the recycler
 *
 * @param listener
 */
public void removeOnItemTouchListener(RecyclerView.OnItemTouchListener listener) {
    mRecycler.removeOnItemTouchListener(listener);
}
 
Example 14
Source File: EasyRecyclerView.java    From fangzhuishushenqi with Apache License 2.0 2 votes vote down vote up
/**
 * Add the onItemTouchListener for the recycler
 *
 * @param listener
 */
public void addOnItemTouchListener(RecyclerView.OnItemTouchListener listener) {
    mRecycler.addOnItemTouchListener(listener);
}
 
Example 15
Source File: EasyRecyclerView.java    From BookReader with Apache License 2.0 2 votes vote down vote up
/**
 * Add the onItemTouchListener for the recycler
 *
 * @param listener
 */
public void addOnItemTouchListener(RecyclerView.OnItemTouchListener listener) {
    mRecycler.addOnItemTouchListener(listener);
}
 
Example 16
Source File: EasyRecyclerView.java    From BookReader with Apache License 2.0 2 votes vote down vote up
/**
 * Remove the onItemTouchListener for the recycler
 *
 * @param listener
 */
public void removeOnItemTouchListener(RecyclerView.OnItemTouchListener listener) {
    mRecycler.removeOnItemTouchListener(listener);
}
 
Example 17
Source File: IRecyclerView.java    From tenor-android-core with Apache License 2.0 votes vote down vote up
void removeOnItemTouchListener(RecyclerView.OnItemTouchListener listener); 
Example 18
Source File: IRecyclerView.java    From tenor-android-core with Apache License 2.0 votes vote down vote up
void addOnItemTouchListener(RecyclerView.OnItemTouchListener listener); 
Example 19
Source File: BaseListContract.java    From FriendBook with GNU General Public License v3.0 votes vote down vote up
void addOnItemTouchListener(RecyclerView.OnItemTouchListener listener);