iudragon / FRECIPEPART1PROJECT

See the project linked to this repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2 building a base Activity

iudragon opened this issue · comments

  • Code that gets reused multiple times. For this we create a BaseActivity.java

  • Create Layout for BaseActivity.java

  • Parent Layout is ConstraintLayout and under that we use FrameLayout. This is where other Activity containers live.

  • We extend BaseActivity by AppCompatActivity and make it """abstract"""

  • We create RecipeListActivity.java and extend it by BaseActivity

  • RecipeListActivity.java will display list of recipes