116657: Declare fragment in the activity layout
Update "Blank activity with template" to set fragment in the layout
XML file and not in the Java code. Following changes were made to
the code:
1. Added <fragment> element with ID "+id/fragment" to activity layout.
2. Fragment class is now a top-level class with the name composed of
activity name and "Fragment"
3. Activity class no longer sets up the fragment, imports were cleaned
up as well.
Fixes:
https://code.google.com/p/android/issues/detail?id=116657
Change-Id: Ief69f9df3f3fdc4a13dd33859ef116d0bfa449a8
7 files changed