What is the difference between Acitvity_Main.xml and Fragment_main.xml files in Android Studio

后端 未结 3 1410
醉梦人生
醉梦人生 2020-12-14 16:20

When ever i create a new project, the Fragment_main.xml file is added to my Layout folder and unlike in Eclipse it is this file that contains what is normally in the Activit

3条回答
  •  余生分开走
    2020-12-14 16:55

    The Activity_main.xml contains the Layout for the FragmentActivity and the fragment_main.xml is the Layout for the fragment.

    For more information to fragments and how you can use it.
    Visit: http://developer.android.com/training/basics/fragments/index.html

提交回复
热议问题