pakerfeldt / android-viewflow

A horizontal view scroller library for Android
1.78k stars 695 forks source link

How to make the margin between images become zero? #103

Open kayvannj opened 10 years ago

kayvannj commented 10 years ago

I have added the library and its working great but I need to connect all of my images horizontally. I can not find where this margin comes from but there is about 10 px margin between each pair of images.

Can some one help me please?

SlavaJan commented 8 years ago

There's a hack for that in HTML. I hope it will help you in your case too. When you place images like that: <img src="bunny.jpg"><img src="sheep.jpg"> there is a space between them like you said about 10 pixels. To avoid that you can place images like this: <img src="bunny.jpg"><!----><img src="sheep.jpg"> or even like this: <img src="bunny.jpg"><!-- killing the margin --><img src="sheep.jpg"> to keep code beautiful. Just remember to put any commentary between your pictures.