Error in AdapterView.OnItemClickListener
<p>Why do I say mis here this array list Code
I tried a lot I did not find the solution
Please Help</p>

<pre><code>*public class* MainActivity extends AppCompatActivity {

**@Override**
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    ArrayList&lt;Listitem&gt; Items = new ArrayList&lt;Listitem&gt;();
    Items.add(new Listitem("Noor", "Derna"));
    Items.add(new Listitem("MERO", "Derna"));
    Items.add(new Listitem("Noor", "Derna"));
    Items.add(new Listitem("Noor", "Derna"));

    **mycustomadapter myadabter = new mycustomadapter(Items);**

    **ListView Ls = (ListView) findViewById(R.id.listView); 
    Ls.setAdapter(myadabter);
Ls.setOnClickListener(new AdapterView.OnItemClickListener() {**


        **@Override**
        *public void onItemClick (AdapterView&lt;?&gt; parent, View view, int position, long id) {*

            TextView txtname = (TextView) view.findViewById(R.id.txt_name);
            TextView txtdisc = (TextView) view.findViewById(R.id.txt_disc);
            Toast.makeText(getApplicationContext(), txtname.getText(), Toast.LENGTH_LONG).show();
        }
    });
}





class  mycustomadapter extends BaseAdapter
{
    ArrayList&lt;Listitem&gt; Items=new ArrayList&lt;Listitem&gt;(); array list
    mycustomadapter(ArrayList&lt;Listitem&gt; Items){
    this.Items=Items;
    }
    @Override
    public int getCount() {
        return Items.size();
    }

    @Override
    public Object getItem(int position) {
        return Items.get(position).Name;
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int i, View View, ViewGroup viewGroup) {
        LayoutInflater Linflater=getLayoutInflater(); 
        View view1 = Linflater.inflate(R.layout.raw_view,null); الview1يمثل الraw_item
        TextView txtname=(TextView)view1.findViewById(R.id.txt_name);
        TextView txtdisc=(TextView)view1.findViewById(R.id.txt_disc);
        txtname.setText(Items.get(i).Name);
        txtdisc.setText(Items.get(i).Desc);

        array list
        return view1;


    }
}
</code></pre>

<p>}` ListView Ls = (ListView) findViewById(R.id.listView); //اتصال بالليست فيو
        Ls.setAdapter(myadabter);
        Ls.setOnClickListener(new AdapterView.OnItemClickListener() {</p>

<pre><code>        @Override
        public void onItemClick (AdapterView&lt;?&gt; parent, View view, int position, long id) {

            TextView txtname = (TextView) view.findViewById(R.id.txt_name);
            TextView txtdisc = (TextView) view.findViewById(R.id.txt_disc);
            Toast.makeText(getApplicationContext(), txtname.getText(), Toast.LENGTH_LONG).show();
        }
    });
}`
</code></pre>