Android list view Base adapter getView fire multiple times? : <p><strong>This is my XML</strong>

</p>

<pre><code>&lt;RelativeLayout
    android:id="@+id/preview_header"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/socialbottom"
    android:padding="10dp"&gt;

    &lt;TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Preview"
        android:textColor="@color/white"
        android:textStyle="bold" /&gt;

    &lt;ImageButton
        android:id="@+id/close_preview_btn"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:background="@drawable/close_btn" /&gt;
&lt;/RelativeLayout&gt;


&lt;RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_above="@+id/empty_view"
    android:layout_below="@+id/preview_header"&gt;

    &lt;ListView
        android:id="@+id/preview_dialog_list"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:divider="@android:color/transparent"
        android:dividerHeight="8dp"
        android:scrollbars="none"&gt;&lt;/ListView&gt;
&lt;/RelativeLayout&gt;

&lt;View
    android:id="@+id/empty_view"
    style="@style/Space"
    android:layout_width="match_parent"
    android:layout_above="@+id/preview_add_more_btn"&gt;&lt;/View&gt;

&lt;Button
    android:id="@+id/preview_add_more_btn"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_above="@+id/empty_view1"
    android:background="@color/content_text"
    android:drawableLeft="@drawable/plus_icon"
    android:drawablePadding="50dp"
    android:gravity="center_horizontal"
    android:padding="8dp"
    android:paddingLeft="300dp"
    android:text="@string/add_more"
    android:textColor="@color/white" /&gt;

&lt;View
    android:id="@+id/empty_view1"
    style="@style/Space"
    android:layout_width="match_parent"
    android:layout_above="@+id/footer_preview"&gt;&lt;/View&gt;

&lt;RelativeLayout
    android:id="@+id/footer_preview"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:orientation="vertical"&gt;

    &lt;EditText
        android:id="@+id/preview_input_timeline"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentEnd="true"
        android:layout_alignParentLeft="true"
        android:layout_alignParentRight="true"
        android:layout_alignParentStart="true"
        android:background="@color/acticty_textbox"
        android:hint="What&amp;apos;s up, admin?"
        android:inputType="textMultiLine"
        android:padding="8dp" /&gt;


    &lt;Button
        android:id="@+id/preview_post_btn"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignRight="@+id/preview_input_timeline"
        android:layout_centerHorizontal="true"
        android:layout_gravity="center_horizontal"
        android:background="@drawable/savebox"
        android:padding="8dp"
        android:text="Post"
        android:textAllCaps="true"
        android:textColor="@color/white"
        android:textStyle="bold" /&gt;
&lt;/RelativeLayout&gt;
</code></pre>

<p></p>

<p><strong>This is JAVA</strong></p>

<pre><code>   public View getView(int position, View convertView, ViewGroup parent) {
        convertView = mInflater.inflate(R.layout.preview_list_view, null);
        ImageButton removeBtn = (ImageButton) convertView.findViewById(R.id.remove_preview);
        ImageView imageView = (ImageView) convertView.findViewById(R.id.preview_image);
        VideoView videoView = (VideoView) convertView.findViewById(R.id.preview_video);
        Log.e("video sizzzessssssss", String.valueOf(imagesList.size()));
        if (SocialActivity.MEDIA_TYPE_IMAGE == previewType) {
            videoView.setVisibility(View.INVISIBLE);
            imageView.setVisibility(View.VISIBLE);
            String path = imagesList.get(position);
            File imgFile = new File(path);
            if (imgFile.exists()) {
                // Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());
                //  imageView.setImageBitmap(myBitmap);
                Bitmap d = new BitmapDrawable(context.getResources(), imgFile.getAbsolutePath()).getBitmap();
                int nh = (int) (d.getHeight() * (512.0 / d.getWidth()));
                Bitmap scaled = Bitmap.createScaledBitmap(d, 512, nh, true);
                imageView.setImageBitmap(scaled);

            }


        } else {
            imageView.setVisibility(View.INVISIBLE);
            videoView.setVisibility(View.VISIBLE);
            videoView.setVideoPath(imagesList.get(position));
            MediaController mediaControls = new MediaController(SocialActivity.socialActivity);
            videoView.setMediaController(mediaControls);
            videoView.start();
            videoView.pause();
            Log.e("path video", imagesList.get(position));
        }
        removeBtn.setOnClickListener(new ListCustomClickEvents(callback, position));

        return convertView;
    }
</code></pre>
