How to add fragment to activity (xml method) Android Studio

In this video I am going to show you how to: add a fragment that we will create, to a activity using a fragment view in the layout file.

This process will take about 2 minutes but by the time we are finished here, you will know everything about how to add fragments to activities in xml.

I guarantee you will learn something of value in this video.
In this video we will be using Android Studio Version 2.3.3
Link to corresponding Android Developers web…


  1. i learned alot man its too much detailed. Thankyou about wrapContent and matchParent Info. The blank Fragment looks pretty cool. you ll go places in your life after watching this video. Aimıing for the skies

Leave a Reply

Your email address will not be published. Required fields are marked *