I want activity with the below structure,
---> ActionBarActivity -----> Fragment (ViewPager for horizontal swipe) ----> Recycler views ---> which has a button
Now what I need to achieve is, when the user long press the button in a recycler view, it should be selected and the activity's action bar should show an contextual menu. After selecting the first item(using longpress) user should be able to select/deselect other items with just click.
But the main problem here is how can I send long press of button to main activity when the recycler exists in Fragment.