MainActivity.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="
http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <fragment android:name="co.test.MainFragment"
        android:id="@+id/MainFragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
</LinearLayout>
 
MainActivity.xml 과 같은 xml을 자바코드로 만들수 있나요?