34,333
edits
Changes
→Adding a Fragment to an Activity using the Layout XML File
</RelativeLayout>
</pre>
<google>ADSDAQBOX_FLOW</google>
The key properties within the <fragment> element are android:name, which must reference the class associated with the fragment, and tools:layout, which must reference the XML resource file containing the layout of the fragment.