0% found this document useful (0 votes)
15 views6 pages

Fragments Creation in XML

The document provides instructions on creating fragments in XML for a Java application. It specifically mentions using a fragment tag in the MainActivity XML layout file (content_main.xml) and selecting the created fragment from a list of options. This guide is aimed at developers looking to implement fragments in their XML layouts.

Uploaded by

Renuka Pahade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views6 pages

Fragments Creation in XML

The document provides instructions on creating fragments in XML for a Java application. It specifically mentions using a fragment tag in the MainActivity XML layout file (content_main.xml) and selecting the created fragment from a list of options. This guide is aimed at developers looking to implement fragments in their XML layouts.

Uploaded by

Renuka Pahade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 6

CREATING

FRAGMENTS
IN XML
CREATING FRAGMENTS IN XML
H O W T O M AK E A F RAG M E N T
Java file

Xml file
MainActivity xml layout file (content_main.xml):
• choose a fragment tag from widgets
• It gives a list of options, choose the fragment you just created.

You might also like