package com.k3nx.taskit;

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ArrayAdapter;
import android.widget.ListView;


public class TaskListActivity extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_task_list);

        String[] items = {"1", "2", "3"};
        ListView list = (ListView)findViewById(R.id.task_list);
        list.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, items));
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.menu_task_list, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        // Handle action bar item clicks here. The action bar will
        // automatically handle clicks on the Home/Up button, so long
        // as you specify a parent activity in AndroidManifest.xml.
        int id = item.getItemId();

        //noinspection SimplifiableIfStatement
        if (id == R.id.action_settings) {
            return true;
        }

        return super.onOptionsItemSelected(item);
    }
}

@@ -460,40 +460,235 @@
     
-String%5B%5D items = %7B%221%22, %222%22, %223%22%7D
+Task%5B%5D items = new Task%5B3%5D;%0A        items%5B0%5D = new Task();%0A        items%5B0%5D.setName(%22Task 1%22);%0A        items%5B1%5D = new Task();%0A        items%5B1%5D.setName(%22Task 2%22);%0A        items%5B2%5D = new Task();%0A        items%5B2%5D.setName(%22Task 3%22)
 ;%0A  
@@ -706,16 +706,20 @@
 iew list
+View
  = (List
@@ -765,16 +765,20 @@
     list
+View
 .setAdap
@@ -802,14 +802,12 @@
 ter%3C
-String
+Task
 %3E(th

Using Tasks