Exclude this line in your ImageAdapter to stop loading this preset:
Images may overlap after this, so go to your main.xml file or whatever you use to style it and add this to your gallery to fill your gallery images like a transparent frame:
android:spacing="10px"
So, now part of the XML Gallery will look like this:
<Gallery android:id="@+id/Gallery01" android:layout_width="fill_parent" android:layout_height="wrap_content" android:spacing="10px"> </Gallery>
source share