Questions tagged as 'fragment'

1
answer

Pass data between Fragments

I have done a ViewPager, with tabs to navigate between the different fragments (3). My idea was to have in the first fragment a list of CheckBox with the names of companies, and that when you slide to the second fragment, in which I have a ma...
asked by 07.04.2017 / 13:17
2
answers

Run Activity while displaying a Fragment

My question is if, while a Fragment is being displayed, the Activity is still running in the background. I know that when you press the onBackPressed() you call the Activity , but I do not know if it's a special cas...
asked by 01.03.2017 / 18:17
1
answer

send data from a fragment to an activity

I have a problem ... when I click on the item (which is inside a fragment) it directs me to an activity but I only get the data of the "title" ... the "image" and "place" comes out empty public void onStart() { super.onStart(); op...
asked by 04.12.2018 / 04:01
1
answer

Error initializing a fragment

People give me this little mistake when initializing the Fragment. BlankFragment is my Fragment. says that the Fragment class is not compatible with the BlankFragment class extending this from Fragment private void seleccionarItem(MenuItem ite...
asked by 11.11.2018 / 04:46
1
answer

By clicking on fragment pulse the activity

I have the problem that when creating all my fragments the buttons of the activity continue to work, that is, to be in one of the fragments if I give somewhere on the screen where there is a button in the activity thi...
asked by 19.07.2018 / 23:32
2
answers

TabLayout lower without AppToolbar

how do they walk? I do not know how to configure my tablayout to the bottom of my screen I am using fragments and my main view is a CoordinatorLayout. The idea of TabLayout is to use it without the Toolbar . This is my XML code...
asked by 10.07.2018 / 01:23
0
answers

Update webview in a Swipe to Refresh fagment

I have a webview within a fragment and I would like to add a swipe to update the page that is displayed. I have seen several examples but none of them work for me. This is my xml : <android.support.v4.widget.SwipeRefreshLayout andr...
asked by 20.04.2018 / 17:49
1
answer

Retrieve data from a Fragment from another Fragment

Let's say I have a Activity called MainActivity that has three Fragments    F1, F2 and F3 These three'Fragments' are loaded from the MainActivity in the following way: public void initFragments(){ FragmentManag...
asked by 15.03.2018 / 16:22
1
answer

Problem with fragments

I'm doing a ViewPager that contains 3 fragments. Each fragment, when starting, has to make an asynchronous call to retrieve certain data through a query to a database. These calls are good, the problem is that, once in this activity, if I...
asked by 21.12.2017 / 10:07
0
answers

Scroll two fragments into an activity

The image I put is the example of the moovit app of the functionality that I am interested in implementing, if you drag where the tabs are (stops and favorites) you can scroll up or down and the lower or upper fragment is growing . My q...
asked by 19.03.2017 / 08:48