Questions tagged [child-fragment]

A child-fragment is a Fragment nested inside another Fragment.

If this Fragment is a child of another Fragment, the FragmentManager returned here will be the parent's getChildFragmentManager().

Official Support v4 Fragment Documentation

37 questions
0
votes
0 answers

Onbackpressed not called from Child Fragment. App Exits

I have an app with child fragments nested inside another fragment using AppCompatActivity. The child fragment is created as follows: FragmentManager fragmentManager = getChildFragmentManager(); FragmentTransaction…
Jaz
  • 371
  • 1
  • 6
  • 20
0
votes
0 answers

onActivityResult in the parent fragment can't be invoked

I am a fresh one , I am facing a problem about sending data from child fragment to parent fragment quite some time , whatever I do , I still can't resolve it . I sought a lot of topic , I still can't get it resolved . Could you please help me if you…
0
votes
0 answers

android nested fragment doesn't work properly

I'm trying to show a nested fragment inside my fragment on button click, so on button .setOnClickListener (which works fine with Log.d) of my main fragment i've placed: Fragment noteFragment = new FrontPageNote(); FragmentTransaction…
m4tt
  • 825
  • 1
  • 11
  • 28
0
votes
1 answer

ListView onItemClick launches another ListView - with Fragments

On startup, my app launches a fragment which displays a listView of 'projects'. When I click on a project, a new fragment is launched which displays the project's details, including another listView of 'tasks' (each project object can contain many…
-1
votes
1 answer

How to fix supportFragmentManager?

Im trying to put google maps into SupportMapFragment on my MainActivity file like these ways: val mapFragment = supportFragmentManager.findFragmentById(R.id.map) as? SupportMapFragment mapFragment?.getMapAsync(this) and val mapFragment =…
Mauricio Reyes
  • 152
  • 2
  • 11
-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 2
3