How would one go about removing the ugly grey boarder around the Gallery images?
Exclude this line in your ImageAdapter to stop loading of that preset:
//imageBackground = ta.getResourceId(R.styleable.Gallery1_android_galleryItemBackground, 1);
Images might be overlapping after this, so go into your main.xml or whatever you are using for styling and add this to your Gallery, for padding around your gallery images, like a transparent border:
android:spacing="10px"
So that now the Gallery part of the XML will read:
<Gallery
android:id="@+id/Gallery01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:spacing="10px">
</Gallery>
Another way is setting yourGallery.setUnselectedAlpha(1); The last answer bring me troubles in other things. Excuse me for my english!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With