klinker41 / android-slidingactivity

Android library which allows you to swipe down from an activity to close it.
Other
1.28k stars 182 forks source link

Do you have example with RecyclerView ? click to sliding activity #17

Closed helmifluida closed 8 years ago

willu2 commented 8 years ago

You can use with RecycleView. Do not create ScrolView and View in your recycler, and item. Create listener in ViewHolder, like public class View_Holder extends RecyclerView.ViewHolder implements View.OnClickListener {....

@Override
        public void onClick(View v) {
               Intent intent = new Intent(v.getContext(), FabActivity.class);
               v.getContext().startActivity(intent);
    }

after, if you clicked on item, activity (create).