title: Android BaseAdapter getView - any way to get real position?
body: <pre><code>  public View getView(int position, View convertView, ViewGroup parent) {
  </code></pre>
  
  <p>position here is not the actual position in ListView, as they are recycled and I need to know real position, for example if it's 24th position in ListView I need to know if it's 24.</p>
  
  <pre><code>  @Override
        public View getView(int position, View convertView, ViewGroup parent) {
          View view = convertView;
              if (view == null) { 
  
       view = lInflater.inflate(R.layout.item, parent, false);
  
                }
  
  
                  imgstatus=(ImageView) view.findViewById(R.id.ivImage);
            imgstatus.setTag(position);
            itemTap=view.findViewById(R.id.itemTap);
            itemTap.setTag(position);
  
  
  //....there's a lot of stuff, but I set Tags here
  }
  </code></pre>
  
  <p>So, the Issue is when I set onClick or onTouchListeners on these elements - it return me wrong tags.</p>
  
  <p>For example , when I just open it and just scroll down - the tags are ok. 16 is 16, but when I scroll up and down, 16 may become 2</p>
  
  <p>get the tag :</p>
  
  <pre><code> itemTap.setOnTouchListener(new View.OnTouchListener() {
  
  
                  @Override
                  public boolean onTouch(View v, MotionEvent event) {
      //skipped
      if (event.getAction()==MotionEvent.ACTION_UP){
                          downtime=0L;
                          Log.d("MyLog","up. tag="+v.getTag());
                          listener_item.itemClick((Integer) v.getTag());  
                          (((RelativeLayout) v.getParent()).findViewById(R.id.ivAllother)).setBackgroundDrawable(ctx.getResources().getDrawable(R.drawable.spare_play));
                          return true;
                      }
  }
  </code></pre>
  
  <p>so, here, <code>Log.d("MyLog","up. tag="+v.getTag());</code> returns me wrong tags after I scroll my ListView here and there</p>