package edu.hhs.jokelist; import android.os.Bundle; import android.widget.Button; import android.widget.EditText; import android.widget.LinearLayout; import androidx.appcompat.app.AppCompatActivity; import java.util.ArrayList; public class MainActivity extends AppCompatActivity { /** Contains the list Jokes the Activity will present to the user. */ protected ArrayList m_arrJokeList; /** LinearLayout used for maintaining a list of Views that each display Jokes. */ protected LinearLayout m_vwJokeLayout; /** EditText used for entering text for a new Joke to be added to m_arrJokeList. */ protected EditText m_vwJokeEditText; /** Button used for creating and adding a new Joke to m_arrJokeList using the * text entered in m_vwJokeEditText. */ protected Button m_vwJokeButton; /** Background Color values used for alternating between light and dark rows * of Jokes. */ protected int m_nDarkColor; protected int m_nLightColor; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // TODO } /** * Method used to encapsulate the code that initializes and sets the Layout * for this Activity. */ protected void initLayout() { // TODO } /** * Method used to encapsulate the code that initializes and sets the Event * Listeners which will respond to requests to "Add" a new Joke to the * list. */ protected void initAddJokeListeners() { // TODO } /** * Method used for encapsulating the logic necessary to properly initialize * a new joke, add it to m_arrJokeList, and display it on screen. * * @param strJoke * A string containing the text of the Joke to add. */ protected void addJoke(String strJoke) { // TODO } }