title: addview in list not displaying multiple records in android
body: <p>Here i have to display list like display in right but i need like left one</p>
  
  <p><img src="https://i.stack.imgur.com/RIttL.jpg" alt="enter image description here"></p>
  
  <p>For that i have created custom listview and used addview() for adding policydate,paymentdate and policyamt.</p>
  
  <p>Here in my <strong>getview()</strong> method i have used this code </p>
  
  <pre><code>for(int x=0;x&lt;noofpolicy;x++){
      Log.i("Policy No",i.getpolicyno(x));
      Log.i("Payment Date",i.getpaymentdate(x));
      Log.i("Policy Amount",i.getpolicyamount(x)+"");
  
      LayoutInflater inflaterforpolicylist = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
      View hiddenInfo = inflaterforpolicylist.inflate(R.layout.rowdetaillist, null);
  
      TextView policynoView = (TextView) hiddenInfo.findViewById(R.id.policynooflist);
      TextView paymentdateView = (TextView) hiddenInfo.findViewById(R.id.paymentdateoflist);
      TextView policynameView = (TextView) hiddenInfo.findViewById(R.id.policyamtoflist);
      policynoView.setText(i.getpolicyno(x));
      paymentdateView.setText(i.getpaymentdate(x));
      policynameView.setText(i.getpolicyamount(x)+"");
  
  
     myLayout.addView(hiddenInfo, x, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT));
  
  }
  </code></pre>
  
  <p>it showing all the record in logcat.
  So here my question is that why it showing blank space in result and not displaying multiple records? What change i have to do in my code for displaying multiple records?</p>