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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With