package net.emteeware.emteeseason;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;

import static net.emteeware.emteeseason.R.id.SeriesList;

public class MainActivity extends AppCompatActivity {

    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        ListView listview = (ListView) findViewById(R.id.SeriesList);

        String[] items = new String[] {"Blue Bloods", "Marvel's Daredevil", "Suits"};
        ArrayAdapter<String> adapter =
                new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, items);

        listview.setAdapter(adapter);
    }
}

@@ -263,16 +263,45 @@
 Toast;%0A%0A
+import java.util.ArrayList;%0A%0A
 import s
@@ -405,16 +405,101 @@
 vity %7B%0A%0A
+    ArrayList%3CString%3E items = new ArrayList%3C%3E();%0A    ArrayAdapter%3CString%3E adapter;%0A%0A%0A
     @Ove
@@ -651,24 +651,53 @@
 ity_main);%0A%0A
+        items.add( %22Suits%22);%0A
         List
@@ -767,140 +767,17 @@
     
-String%5B%5D items = new String%5B%5D %7B%22Blue Bloods%22, %22Marvel's Daredevil%22, %22Suits%22%7D;%0A        ArrayAdapter%3CString%3E adapter =%0A               
+adapter =
  new
@@ -790,22 +790,16 @@
 Adapter%3C
-String
 %3E(this, 
@@ -840,24 +840,25 @@
 1, items);%0A%0A
+%0A
         list
@@ -888,11 +888,161 @@
 );%0A    %7D
+%0A%0A    public void addItems(View view) %7B%0A        items.add(%22Blue Bloods%22);%0A        items.add(%22Sherlock%22);%0A        adapter.notifyDataSetChanged();%0A    %7D
 %0A%7D%0A

Add new items when button is pressed