Make my code more simple
<p>I have an app with 10 list items.All the items onClick have the same layout between them.I have created a new class for every item and using a switch method to move to every activity.Is there any way to make it more simple( and dont have 10 classes but less)?Thanks</p>

<pre><code>mylist.add(map);

            map = new HashMap&lt;String, Object&gt;();
            map.put("name", "aa");
            map.put("address", "aaa");
            map.put("address3", R.drawable.im1);

            mylist.add(map);// i m adding 10 items like this here


            ListAdapter mSchedule = new SimpleAdapter(this, mylist, R.layout.row,
                        new String[] {"name", "address","address3"}, new int[] {R.id.TextView1, R.id.TextView2,R.id.imgdiadromes});
            listcafe.setAdapter(mSchedule);



            listcafe.setOnItemClickListener(new OnItemClickListener() {
             public void onItemClick(AdapterView&lt;?&gt; parent, View view,
                      int position, long id) {
                    switch( position )
                    {
                       case 0:    
                        Intent newActivity = new Intent(diadromes.this, monte.class);
                        startActivity(newActivity);
                        break;
                    case 1:    
                        Intent newActivity1 = new Intent(diadromes.this, diadromestherisos.class);
                        startActivity(newActivity1);
                        break;
</code></pre>

<p>//and i have 8 more cases here</p>

<p>The class mothe.class and the diadromestherisos.class are exactly the same,i m getting the same content view and i m only changing the text and the images(from .setText and.setImageResource).Hope my problem is understandable!</p>
