title: How to display 30 row in listview with different view i need to display
body: <p>How to display 30 row in listview with different view I need to display 1 4 7 10 13 .......textview 2 5 8 11 14 .......edittext view 3 6 9 12 15 .........image view</p>
  
  <p>here the code getting some error</p>
  
  <pre><code>public View getView(int position, View v, ViewGroup parent) {
      if(position==0){
          v=getLayoutInflater().inflate(R.layout.secondactvity, null);
          TextView t1=(TextView)v.findViewById(R.id.textView1);
          t1.setText(names[position]);
          Log.d("View Number", position+"");
      }
      else if(position==1){
          v=Inflater.
          Log.d("View Number", position+"");
          EditText e1=(EditText)v.findViewById(R.id.editText1);
      }
      else if(position==2){
          v=getLayoutInflater().inflate(R.layout.thirdactivty, null);
          ImageView im1=(ImageView)v.findViewById(R.id.imageView1);
          im1.setImageResource(img[position]);
          Log.d("View Number", position+"");
      }
  </code></pre>