Select/Unselect a recycler view inside a fragment

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.

Category:android Views:0 Time:2018-05-12

Related post

  • Content View inside List Fragment 2016-01-14

    I have created a list view to populate under a tab using listfragment as shown below. But i need to also write code to Show content text as "No Files on this tab" when the list returns empty. Is there a way to do this? if(recordList.size()>0)

  • Swap views between 2 fragments 2012-03-07

    In my app I have 3 fragments all of the same type but the views are modified based on data. so i have FragmentA, FragmentB, and FragmentC (all the same type) and initially FragmentA has View1, FragmentB has View2, fragmentC has View3. After swiping t

  • Recycling views, listview inside scrollview 2011-10-14

    I am aware of recycling of views in LiveView, I am also aware that we cannot have a listview as a child of scroll view, which just scrambles the scrolling up. I know the work around of using LinearLayout or any other viewgroup and add components to i

  • Howto call views inside another SELECT statement (SQL Server)? 2010-01-13

    I created a view. The view's Query works fine. Now I want to write another Query which uses the first one. As far as I know it should look like this: SELECT * FROM myView; Now there is an Error returned: "Ungültiger Objektname 'myView'" in English it

  • Access a view inside a tab navigator when a tab is clicked 2010-05-19

    I I have a view in Flex 3 where I use a tab navigator and a number of views inside the tab navigator. I need to be know which view was clicked because of it's one specific view then I need to take action, i.e. if view with id "secondTab" is clicked t

  • Handling selected/unselected states with ImageView as Tab indicators 2011-01-14

    I'm using ImageViews for my Tab indicators in a TabActivity. I have two copies of the same jpeg file, one scaled to 75% of the original. What I want to be able to do is use the normal size for selected and the smaller for unselected. StateListDrawabl

  • Table view inside a table view 2011-06-10

    In my app i am having a table view in which i am having buttons in which images are shown .Now what i want is that when i click on any image(button).then another table view has to be shown inside the first table view.Then i need to click on the image

  • Table View inside of View Controller 2011-07-18

    All, I have a regular view controller with several buttons on it, but when one of the buttons is pressed it retrieves information that I want to throw right above the buttons. For the sake of this, imagine a blank view controller with one button at t

  • Android 1.6 TabHost inside a Fragment 2011-09-02

    In the demo Support4Demos - API 4+ Support Demos , the Tabs and TabsPager examples both extend FragmentActivity. Each tab content is itself a Fragment. No real breakthrough, TabActivity was used the same way without the introduction of Fragment. Now

  • How to hide the soft keyboard from inside a fragment? 2011-10-29

    I have a FragmentActivity using a ViewPager to serve several fragments. Each is a ListFragment with the following layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android

  • Android list view inside tab focus issue 2011-11-19

    I have a TabHost with a ListView inside a tab. When the activity starts, I can't scroll the list view until I have clicked off the tab that the activity starts on, and then re-select the tab with the list view inside it. Note, I can get the list view

  • jQuery - Select/unselect multiselect options with replacement divs 2011-12-09

    I'm working on a modal multiselect replacement that takes a <select> element and replaces it and it's <option>s with divs. I am a jQuery novice, and I've reached a point now where I have the replacement working perfectly but with a few hi

  • Unable to update progress bar inside a Fragment using AsyncTask 2011-12-10

    I'm unable to update the progress bar , which is in a ListView inside a Fragment. I could see the updated progress bar if I refresh the fragment! but then, as soon as the progress bar shows, the app crashes! In Short: I'm unable to get the list view

  • Fragments inside a Fragment 2012-03-23

    This question already has an answer here: Fragment Inside Fragment 9 answers Is there any help, resources, example or a tutorial available for putting fragments inside a fragment? I have two tabs put up using Action Bar Navigation tabs, which essenti

  • ExpandedList inside a Fragment 2012-03-23

    How to put Expanded List inside a Fragment Tab? I have 3 fragments in one page, The 2nd Fragment consist of two tabs,I want to put an expanded List inside the second tab.please help ,Thanks :) --------------Solutions------------- Correct me if I am w

  • Checkbox inside the Fragment - capturing checks/unchecks 2013-10-14

    I'm trying to recieve checkbox choices inside my Fragment class, however I'm not able to use the way I've used in Activities (calling android:onClick="onCheckboxClicked" method from a layout.xml), because I get the "method onCheckboxClicked not found

  • Performing Action inside the Fragment 2015-02-09

    I have MainActivity that call Fragment, the fragment call class is: public class Main extends Fragment{ //public Main(){} Button btn; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final

  • How do you find out dynamically created checkbox is select/unselect in data grid component in flex? 2009-07-01

    i created dynamically checkbox on data grid how do i find out Which checkbox select/unselect and which checkbox contact is select/unselect ? Because we cant set dynamic id for each checkbox <mx:DataGrid x="7" y="3" width="347" height="337" dataPro

  • Creating a Navigation View inside the standard Flipside view? 2009-08-19

    Does anyone know how to create a Navigation View inside a standard Flipside View to read and update settings? If so, can you post some code on doing this. --------------Solutions------------- You could make the flipside view a subclass of UINavigatio

  • MVC - Model View inside of another Model View 2009-11-12

    Is it good practice to use one model view inside of another one and how will AutoMapper work with it? Example: public class CustomerModelView { public string FullName {get;set;} public string IList<OrderListModelView>(get;set;) } --------------

  • IPhone SDK_A table view inside of a table view 2010-01-22

    I want to make a table view inside of a table view. I mean how can I make an app that clicking a cell goes to another list of cells to click to go subclass? --------------Solutions------------- Convolution's answer contains a memory leak. Proper code

  • how to give background color for selected text in text view 2010-02-02

    how to give background color for selected text in text view ? hi, Im developing text view based app. in that i have to change color for selected text. i tried using delegate methods but i not found any property like this. if any iahve any ideas , sug

  • map view inside table view cell 2010-03-12

    i have another (probably unanswered) question about map views. I have a map view inside a table view cell and i want to disable the table view scrolling if the scrolling begins in the map view. Also the zooming gesture does not function normally. It

  • Selective Checkout or a View, on a project in repository 2010-06-09

    I have a bunch of interconnected projects which share the same project tree. I'm looking for a version control system which provides a possibility to checkout a subset of the project tree. If my the full project tree looks like this: Project Root |-F

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.370 (s). 11 q(s)