I\'m defining an ID for my fragment in the xml layout:
it should be a fragment not a LinearLayout
fragment
LinearLayout