I am not new to programming but new to Android Studio. Using Arctic Fox and working through the tutorials @ developer.android.com most everything has been straightforward. My question is in regards to creating a Basic Activity. The tutorial here:
However, when I create new project with Basic Activity, I get two screens with a button to toggle between them. Also, the title says "First Fragment" or "Second Fragment" depending on which screen I am on:
My question is this: Is the tutorial just outdated (March 2021) for using Arctic Fox OR am I just overlooking something really stupid?
Not worried about the application titles or any other widgets as I will learn how to change those as I progress through my lessons. Just wondering why what I created is so different from the lesson itself.
CodePudding user response:
Clearly the tutorial is not outdated. You could have created two fragments i.e. First Fragment and Second Fragment and attached those to your MainActivity. Thats why on button click, fragments are switching. Please share your MainActivity code for more clarification
CodePudding user response:
I will chalk this up to the tutorial being out of date from the newest version of Android Studio (Arctic Fox) that I am using. I have noticed several differences in the tutorials along the way between what I have in Arctic Fox and what the tutorials present but for the most part they are pretty easy to figure out and stay on track.