android listview display only one item
<p>in my project i am trying read data from json and display it on listView. My response (json) have 5 object, but when I set on listview only one element is showing what I missed here? </p>

<p>NotesActivity.java</p>

<pre><code>public class NotesActivity extends Activity {

    ListView listView;
    private List&lt;NoteData&gt; noteList;
    private NoteArrayAdapter listAdapter;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.notes);

        init();
    }

    private void init(){
        listView = (ListView) findViewById(R.id.notes_listView);

        new Thread() {
            @Override
            public void run() {
                super.run();
                getNotes();
            }
        }.start();
    }

    private void getNotes(){
//        Dialogs.showProgressDialog(this, getResources().getString(R.string.loading));
        SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);
        String response = NoteClient.getNotes(settings.getString("key1",null),settings.getString("key2",null));
        System.out.println("response="+response);

        try {
            noteList = Arrays.asList(new ObjectMapper().readValue(response, NoteData.class));

        } catch (Exception e) {
            System.out.println("errorrrrrr");
           e.printStackTrace();
        }

        runOnUiThread(new Runnable() {
            @Override
            public void run() {
                displayList(noteList);
//                Dialogs.closeProgressDialog(_this);
            }
        });

    }
    private void displayList(final List&lt;NoteData&gt; notesList) {
        listAdapter = new NoteArrayAdapter(this, notesList);

        runOnUiThread(new Runnable() {
            @Override
            public void run() {
                listView.setAdapter(listAdapter);
            }
        });
    }
}
</code></pre>

<p>NoteArrayAdapter.java</p>

<pre><code>public class NoteArrayAdapter extends ArrayAdapter&lt;NoteData&gt; {
    private final Activity activity;
    private final LayoutInflater inflater;
    List&lt;NoteData&gt; planetList;

    public NoteArrayAdapter(Activity activity, List&lt;NoteData&gt; planetList) {
        super(activity, R.layout.notes_row, R.id.note_text,planetList );
        this.activity = activity;
        inflater = LayoutInflater.from(activity);
        this.planetList = planetList;
    }


    @Override
    public View getView(int position, View convertView, ViewGroup parent) {

            final NoteData noteData = this.getItem(position);

            convertView = inflater.inflate(R.layout.notes_row, null);

            final TextView textView = (TextView) convertView.findViewById(R.id.note_text);

            textView.setText(noteData.getNotes().get(position).getText());

        return convertView;
    }
}
</code></pre>
