I added a fragment into a container, and it's been added successfully:
DeviceItemFragment diFrag = new DeviceItemFragment();
FragmentManager fragManager = getFragmentManager();
FragmentTransaction fragTrans = fragManager.beginTransaction();
fragTrans.add(R.id.device_items, diFrag);
fragTrans.commit();
I want to set the text of a TextView in the fragment right after it's added, I tried getView().findViewById(xxx), but it got error because I can't get the view at the moment. So now I want to find a way to set the text after it's been 'rendered', is there any way to do this?