Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is the fragment_main.xml missing in the ADT Bundle 20140702?

According to the instructions that Building a Simple User Interface on the website of Android Developers, I am goint to open the fragment_main.xml file from the res/layout/ directory with the Eclipse. But based on the ADT Bundle 20140702, there is only the activity_main.xml in the res/layout. Or fragment_main.xml can be found on the version 20140321.

like image 891
user3835814 Avatar asked Jul 14 '14 07:07

user3835814


1 Answers

Depending on what IDE you are using, creating a fragment layout for your main activity may only be an option now. If my memory serves me correctly I believe the automatically created fragment was prevalent in all IDEs at the time that tutorial was written.

Just use activity_main.xml instead of this fragment_main.xml and the tutorial will work fine. OR you can also right-click on the layout folder and create a new XML layout file and name it fragment_main.xml

like image 160
Zolnoor Avatar answered Sep 23 '22 21:09

Zolnoor