title: How to get last ListView item position
body: <p>I created a listview with radiobutton. The listview is like the image below: 
  <img src="https://i.stack.imgur.com/Yn0Mo.jpg" alt="enter image description here"></p>
  
  <p>And my getView is:</p>
  
  <pre><code>public View getView(final int position, View convertView, ViewGroup parent) {
      ViewHolder holder = null;
      PaymentData rowItem = getItem(position);
      LayoutInflater mInflater = (LayoutInflater) context
              .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
      if (convertView == null) {
          convertView = mInflater.inflate(
                  com.android.paypal.homeactivity.R.layout.list_item, null);
          holder = new ViewHolder();
          holder.radioBtn = (RadioButton) convertView
                  .findViewById(com.android.paypal.homeactivity.R.id.rdb_payment_method);
          holder.btPaymentMethod = (Button) convertView
                  .findViewById(com.android.paypal.homeactivity.R.id.bt_item_event);
          convertView.setTag(holder);
      } else
          holder = (ViewHolder) convertView.getTag();
  
      holder.radioBtn.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View v) {
  
              if ((position != mSelectedPosition) &amp;&amp; (mSelectedRB != null)) {
                  mSelectedRB.setChecked(false);
              }
  
              mSelectedPosition = position;
              mSelectedRB = (RadioButton) v;
          }
      });
  
      if (mSelectedPosition != position) {
          holder.radioBtn.setChecked(false);
      } else {
          holder.radioBtn.setChecked(true);
          if (mSelectedRB != null &amp;&amp; holder.radioBtn != mSelectedRB) {
              mSelectedRB = holder.radioBtn;
          }
      }
  
      holder.radioBtn.setText(rowItem.getRdbText());
      holder.btPaymentMethod.setText(rowItem.getBtText());
      return convertView;
  
  }
  </code></pre>
  
  <p>I want to auto checked the last radiobutton when the screen comes first. How can I achieve this. </p>