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

ViewPager : Navigating Back to Parent Fragment From Child Fragment Closes The Application

I am implementing nested fragments in a ViewPager. When I perform the transaction by replacing the child fragment in the parent fragment after executing addToBackStack(), I am able to see the view shown below. But when I press back button and the…
0
votes
1 answer

To display another fragment from a fragmentwrapper

I have a custom FragmentWrapper class from which I want to return a new instance every time. But inside it, I wan't to display another Singleton Fragment from each instance. i.e. There should be a single fragment of SingletonFragment. And, all the…
0
votes
1 answer

Eclipse Android missing getSupportFragmentManager and getChildFragmentManager

Hi I tried using the android supported lib v4 as well as v13 instead of android app lib but eclipse still cannot recognize the getSupportedFragmentManager and getChildFragmentManager functions. Are there any steps I need to take in order fro eclipse…
0
votes
2 answers

Android viewpager inside dialogfragment, app crashed with no view found for id using API 17

for the issue in question. Tried Searching for solutions and says getChildFragmentManager/getSupportFragmentManager should be used, but the problem is even with updated android sdk lib using the android support v13 (which has v4) installed, Eclipse…
0
votes
1 answer

Get Parent Fragment return Wrong fragment

I have this nested fragment: -> = host MainActivity -> Fragment A -> Fragment B -> Fragment C but when i'm trying to getParentFragment() from Fragment C , i'm getting Fragment A instead of Fragment B. I will be very thankful if someone can explain…
0
votes
1 answer

how to add a MapFragment v2 inside a Fragment and call it into a MainActivity

I have a Main activity which I can not extends to a Fragment activity. In First I was showing my google map in it directly and that all was working fine. But then I have to used the fragments so I have converted my all other activities(Except…
0
votes
1 answer

AsyncTask orientation problems with view pager and nested fragements

I've searched everywhere but could not find an answer which would fit my case. Here's the thing: I have a fragment which shows a view pager with two other fragments, both these fragments use asynctask to get information from a Parse.com database.…
0
votes
1 answer

Unable to get reference of a nested fragment

This code is from my Fragment1 (which creates another fragment) currentState = currentStateFactory.factory(); Log.e("","new state = "+currentState); //In the log I can see currentState is not null FragmentTransaction ft =…
ddfra
  • 2,413
  • 14
  • 24
0
votes
1 answer

OnActivityResult from nested fragment is not calling

I have an activity i.e., HomeActivity, then i have a fragment in HomeActivity with name ParentFragment. In ParentFragment there are three tabs A, B and C. The ParentFragment places A, B and C in nested fragment container. Now A, B and C are nested…
0
votes
1 answer

ListViewDragging issue on nested fragment

I'm using ListViewDraggingAnimation by DevBytes. I'm using it twice : in one Fragment and in a nested Fragment in an other part of the app. But it displays the exact same thing. On Lollipop 5.1 (Nexus 6) it's working perfectly fine. On my other test…
0
votes
1 answer

Android nested fragment rendering to main activity

How to render the nested fragment to main activity?? This is my hierarchy mainAcivity has three dynamic fragment Inside RsOneFragment contain another childone fragment so on... Main Activity -> RsOneFragment -> ChildOneFragment ->…
Mstack
  • 321
  • 1
  • 12
0
votes
1 answer

SupportMapFragment issue in nested TabHost Fragment

I have 1 FragmentActivity 1 main fragment and 2 tabshosted child fragment one is for listview another for map. I have 2 problems here. First one is that I have to prevent recreation of child fragments on every tabchanges. Second problem; the first…
0
votes
1 answer

How to open multiple child fragment inside action bar tabs with swipe gesture

i want to open multiple child fragment inside each action bar tab with swipe feature on tabs. what i have done so far is that i have created action bar tabs with swipe gesture to change tab but i cant open child fragment inside each tab. Please help…
0
votes
1 answer

NavigationDrawer Adapter - Specified Child Already Has Parent

As the title mentions, I am running into an issue where one of the Views has more than one parent. Is there a specific protocol for using a NavigationBar which inflates NestedFragments onItemSelected()? What am I missing in this project? Any…
0
votes
1 answer

addView() is not supported in AdapterView with nested fragments

After trying the solutions mentioned in the already existing answers for the title, the same error seems to persist. I'm trying to inflate a Fragment from a custom ArrayAdapter being used in a NavigationBar. The fragment I'm trying to inflate has 2…