I am trying to add and Remove a fragment in a relative layout. If in the relative layout (fragment container) is empty then add the fragment if not replace the fragment .
How to check whether the layout is empty or not , so that i do not get the error saying fragment already added.