Recently downloaded and installed the latest version of android studio but when i start a new activity
Blank activity with fragment option is not present
Dont have Blank Activity with Fragment in my Android Studio
Post a Reply
|Oldest Newest Rating|
· January 14, 2016
It is for me - as well using the latest version of AS. Maybe you used empty activity instead of blank? These sound similar but are actually different!
· January 18, 2016
Thanks a lot sir.
Maybe i should get my glasses checked up
· May 25, 2016
I have installed Android Studio 2.1.1 and would like to start a new activity with fragment, but i do not see a 'Use a Fragment' option with the empty activity in the latest version though it was there in Android Studio 1.5.
· May 26, 2016
You are right. Studio 2.0 doesn't have that template any more.
I canthink of 3 options.
1. Use the Basic Activity Template and check the "Use a fragment" box (see David's image)
2. Use an empty activity and create a new class that extends fragment. This is what I did in the editor pane of the image below.
3. Use the template in the new -> fragment -> fragment (blank) below. I didn't do this I was just showing how to get to it.
Java / Android Development
Very popular language used to create desktop applications, website applets, and Android apps.
|Bucky Roberts Administrator|