CiderCS3398 / CS3398-Cider-S2017

CS3398 Team Github
0 stars 2 forks source link

Refactor the MainActivity Class #91

Open forrest87 opened 7 years ago

forrest87 commented 7 years ago

With other team members, work on redesigning and implementing the MainActivity class we will use for our program.

zsm8 commented 7 years ago

Adding myself to this task. As per our last Sprint review, Recipe Assistant seems a bit of a bear to modify and was likely made without further addition in mind. That said it can certainly be used for reference for layout/visual guide.

I think the best start would be the main activity in the login code that I have posted under the reference code - material login is the name.

forrest87 commented 7 years ago

I've refactored the MainActivity class to have buttons that launch other activities, such as addRecipeActivity, removeRecipeActivity, searchRecipesActivity, and listRecipesActivity. I'm adding this file to the research and practice directory of our development branch temporarily. Once we get a project bundle up on our dev branch, I'll move it there.

zsm8 commented 7 years ago

Successfully added login activity to MainActivity class. Steps were:

Next, moved the following intent-filter code from Main Activity to Login Activity in the Android Manifest xml file: