Questions tagged [android-nested-fragment]

Nested android fragments represent fragments which are embedded in other fragments.

Nested fragments were introduced in the Android SDK starting with API level 4.2. They are also available on lower API versions through the support compatibility package.

By using getChildFragmentManager()(method of the Fragment class), a fragment can have the behavior of a FragmentActivity. The nested fragments workflow closely follows the one of a normal fragment(which is embedded at in an Activity). For more information about fragments, see the Google Documentaton.

When asking questions about nested fragments one should always add the tag, optionally the could also be added.

281 questions
0
votes
1 answer

Google maps v2 getting fragment instance

I am trying to make a map which is in tab. I added support library so that Google maps would be supported from 2.2 android version. The main problem is that my tabs are fragments and nested fragments are not supported I created two xml files: 1) has…
-1
votes
1 answer

How to get value from childfragment to parentfragment?

I am frustrated. i want to get value from child fragment to parent fragment i had tries many method. interface, viewModel, sharedpreferences but no one work. I had follow this method but it doesn't work for me. here my code parent fragment: public…
-1
votes
1 answer

ChildFragmentManager null object reference from parentFragment

I am working on a simple application and replacing fragments on top of the parent fragment.I am using below code for opening child fragments.This is the code which I am using in PendingFragment to open PendingDetailFragment from…
-1
votes
2 answers

Fragment A calls fragment B - B does a popbackstack - where does it return in A

I cant' find where it returns in Fragment A after a call to fragment B. Fragment A calls fragment Test as follows: btn.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { FragmentTransaction ft =…
narb
  • 958
  • 1
  • 13
  • 39
-1
votes
1 answer

Nested fragment-No activity to handle intent

I have an activity with fragment A added to it dynamically. Now, I transact from fragment A to fragment B. And then from fragment B to fragment C. Now I have a button here when clicked will place a call. I'm not able to start the call intent and the…
-1
votes
2 answers

Fragment replacing returns NullPointerException

There are many topics on this subject, but I couldn't find any solution that helped my case. IDEA BEHIND: What I have is a ViewPager, for swipping between 3 fragments. That works. But in one of the mentioned fragments, I do some functionalities -…
-1
votes
1 answer

Android - Nested Fragments

I am trying to have few Tabs and within each tab I would like to have a list view that will lead me to another Fragment (another listview) It crashes whenever I press one of the elements on the ListView in Android.java file. Android.java package…
-1
votes
1 answer

"The specified child already has a parent. You must call removeView() on the child's parent first" when replace fragment

First I want to explain my layout. It is a "tab list in a tab" which means a list view is controlled by a tab and the tab list is controlled by another tab. Hope you can understand what I mean... my two tab widgets: (bottom tab: main control…
-1
votes
1 answer

Detecting event on a FragmentTabHost present in Fragment

What I have: I have a fragment I am using SherlockActionBar library I have a FragmentTabHost in Fragment What i want to know: I want to detect onClick event each tab and perform some action based on it Fragment1.java: public class Fragment1…
Devrath
  • 42,072
  • 54
  • 195
  • 297
-1
votes
2 answers

How to add child fragment inside parent fragment android?

I have main layout. I want to add fragment in main LinearLayout. But if I want to add child fragment in main fragment, it is currently present and visible.
Tulsiram Rathod
  • 1,926
  • 2
  • 19
  • 29
-2
votes
1 answer

How to change the body of tab onClick of same tab in fragmentTabhost

What I am doing: I have a fragmentabhost in a fragment that has 3-tabs in it. On click of tabs i am able to change the fragments dynamically On click of first tab i am displaying RatingAscending.class What I am trying to do: Now Onclick of the…
1 2 3
18
19