I'm brushing up on my Fragments knowledge following the official tutorial from android developers website; there is a statement into the demo code that doesn't sound clear to me
FragmentTransaction ft = getFragmentManager().beginTransaction();
if (index == 0) {
ft.replace(R.id.details, details);
} else {
ft.replace(R.id.a_item, details);
}
I think I can understand the logic behind the code, but can't figure out where is that item with id = a_item; it doesn't seem to be declared anywhere and obviously the demo app doesn't work.
Can you help me to better understand that piece of code? Thanks in advance