child-fragment

No view found for id 0x7f0800c4 for fragment

旧街凉风 提交于 2020-03-05 04:41:07
问题 I get this error when I am trying to replace the parent fragment ( SearchFragment ) from the child fragment ( ClassroomsTab ) in a swipe tab viewPager . Basically what I am trying to achieve is have a swipe tab menu with multiple buttons in each child fragment that closes the swipe tab menu and open a different existing fragment. The SearchFragment is in a Navigation Drawer activity and so is the destination fragment of the buttons. From what I have read, a solution to this issue is to

Child Fragment Destroyed Automatically Once App Goes To Background - Android

谁说我不能喝 提交于 2020-01-25 10:19:07
问题 In the activity, there is BottomNavigationView with 3 parent Fragments. Each fragment can have child fragments. There is no issue in creating child fragment from the parent fragment, here is the code: getActivity().getSupportFragmentManager() .beginTransaction() .addSharedElement(image, image.getTransitionName()) .add(R.id.container, new ChildFragment()) .addToBackStack(ChildFragment.class.getName()) .commit(); But once child fragment is created and then app goes into the background the child

Shared Element Transition Not Working Between Parent and Child Fragments (Nested Fragments)

…衆ロ難τιáo~ 提交于 2019-12-29 08:23:48
问题 The bounty expires in 21 hours . Answers to this question are eligible for a +100 reputation bounty. Faisal Shaikh wants to draw more attention to this question. In the Main Activity, I have BottomNavigationView where there are 3 different parent fragments. The parent fragment has recyclerview and on item click of recyclerview, I am launching child fragment for more details about the item. I am trying to implement Shared Element Transition between my two fragments (parent & child) but it's

Open a dialog fragment from childfragment from Notification

旧城冷巷雨未停 提交于 2019-12-10 15:59:29
问题 I have a MainActivity which has a viewpager which contains Host fragments(that can contain other fragments with child fragment manager). What I am trying to achieve is to start a dialog fragment from one of the child fragments on clicking action on the Notification. I am using FCM and the notification is coming properly with the intent, but when I try to add the child fragment, I am getting Fragment not attached to activity while I try to get the child fragment manager . @Override protected