How to add admob to listfragment?


I’ve been searching on Google but haven’t found any guide yet. I want to add admob banner above crime list. how to achieve that??

usually I put admob on xml above list view. but in your book we don’t use xml on listfragment.

thank you very much.