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

Nested fragment in a ViewPager with tabs

We want to make a "facebook-like" navigation. We have 3 tabs, with a ViewPager, so here we have 3 categorizedViewModel (see under). Each page is a TabRootFragment public partial class MainView : MvxActionBarActivity, ActionBar.ITabListener public…
0
votes
1 answer

Actionbar doesnt get updated on Back press in BackStack of Nested Fragments?

I have BaseFragment which all the other fragments are extending. And base fragment OnCreate() adds custom actionbar to the application. All the child fragments update actionbar buttons and Title. On back press the actionbar doesnt get…
0
votes
2 answers

BaseFregment To be Parent of all the Child Fragments in my application?

I want to create an application in which I have a BaseFragment which is responsible for pushing and popping fragments in its container, actionbar click callbacks and navigation and all the child fragments extend BaseFragent. How can i Do that?…
0
votes
1 answer

Vertical layouts with dynamically generated nested fragments in Android

So after much ridiculous jumping through of hoops and general contortionism I convinced Android to do an elementary and often required task. That is to generate zero to any number of views with any number of different layouts and associated…
NFG
  • 639
  • 1
  • 5
  • 15
0
votes
3 answers

Android Error : No Tab known for Null Tag

I need a fixed area (around 20%) at top and then 3 tabs below it. The xml is mylist.xml
0
votes
1 answer

OnCreateView not called in android fragment

I have a listView on the left, and a nested fragment with checkBoxes on the right. The checkBoxes are in an Arraylist declared globally. The ArrayList is created dynamically in the onCreateView method of the nestedFragment. In the onPause method i…
0
votes
2 answers

Google Map Nested Fragment does not show up

so I am currently doing a navigation application where I need to display several tabs, one of which show a google map. I have used FragmentPagerAdapter to set up the multi-pages UI and so far for the 2 remaining fragments which do not implements…
0
votes
1 answer

Sizing a ListView when it's a nested Fragment

I want a ListView to fill the space available to it while still leaving room for a small footer view at the bottom of the screen. I'm trying to use a RelativeLayout to accomplish this and attempted to use the solution discussed at Limit number of…
0
votes
0 answers

calling getMap() inside nested mapfragment gives nullpointerexception

I have a mapfragment inside a custom fragment, by calling it like in the answer provided here Unfortunatly there's a NullPointerException, if I call the getMap()-Method (see attached code). Has anybody an idea why? Thanks for your help! private void…
0
votes
1 answer

Cannot get pager working with child fragments

I have a view pager activity in an android app that I want to use to navigate a collection of typed objects. The first one loads fine, but when you swipe to navigate, the content of the child fragment doesn't get repopulated. Code as follows. Ps -…
0
votes
2 answers

OnActivityResult is not called in a Fragment inside another Fragment

I have two fragments with names F1 and F2 and an activity named A. I added fragment F1 in a Framelayout inside activity A using something like this: F1 fragment = new F1(); FragmentTransaction transaction =…
0
votes
3 answers

Android DialogFragment throws ClassCastException from getActivity()

I want to obtain the value in DialogFragment: enter a value into an EditText and change the TextView in Fragment regarding it. My Fragment public class MyPageActivity extends Fragment implements…
0
votes
3 answers

Google maps nullpointer

I get a nullpointer everytime I try to instance the map. I found a lot of articles about it but that didn't work. The map needs to exist in another fragment. This is my code: public class ContactFragment extends Fragment { private Contact contact =…
0
votes
1 answer

Facebook like dynamic viewpager

I am trying to create facebook like viewpager (swipable tabs and proper backstack) I can create swipable tabs but cant handle the proper back navigation. Bellow is my code public class MainActivity extends FragmentActivity { private ViewPager…
0
votes
1 answer

listfragment inside a fragment how to get list

I've got a listfragment inside a fragment. I want to get the list inside the parent fragment, in the onActivityCreated but i can't figure out how to do so. I want to do that because the list is a custom listview with 2 textview and a checkbox and i…