I am using a LinearLayout with a vertical orientation to list fragments. I add fragments to the container programmatically like this:
FragmentTransaction ft = fragmentManager.beginTransaction();
Fragment fragment1 = new Fragment();
ft.add(R.id.llContainer, fragment1);
Fragment fragment2 = new Fragment();
ft.add(R.id.llContainer, fragment2);
ft.commit();
But it only shows the first fragment. Why?