Blank activity with fragment not in android studio

前端 未结 5 857
抹茶落季
抹茶落季 2021-02-07 05:02

Hi my problem is that when I want to create a new project in Android studio and I want to choose blank activity with fragment is not in add an activity to mobile window. Any sol

相关标签:
5条回答
  • 2021-02-07 05:25

    You can find it once you go to the next page. Just check the box saying "Use a fragment"and click finish.

    0 讨论(0)
  • 2021-02-07 05:28

    I found the answer while doing udacity android class.

    Select "Blank Activity" then Next

    0 讨论(0)
  • 2021-02-07 05:45

    I had the same problem with the Android Studio 2.3 (today the latest version), here is the process:

    Create new Activity:

    Tell the activity to use a fragment:

    It worked for me. I wish for you as well.

    0 讨论(0)
  • 2021-02-07 05:46

    With version 2.1, select "Basic Activity" instead of Blank Activity. You will see the "Use a Fragment" checkbox. Click on it, there you go...

    0 讨论(0)
  • 2021-02-07 05:49

    As android studio is being updated so now you can just select blank activity then check the box "Use a Fragment" on the next page. then you will have activity with fragment.

    Hope this helps.. Cheers.

    0 讨论(0)
提交回复
热议问题