0

I'm using this awesome library twoway-view and I got my desired layout.

enter image description here

However, I wanted to reduce the space between each tiles. Right now as you can see there are plenty of white space between each tile.

Anyone who can guide?

Mustafa Adil
  • 85
  • 1
  • 10

1 Answers1

0

Use android:layout_margin attribute for the xml of your item in list.

Here is demo. Read more from docs on layout margins and padding for alignment related issues.

Imdad
  • 683
  • 1
  • 9
  • 27
  • Thanks man, it was all about margins and I was ignoring that. Anyways I've checked the link you shared, my question is can we give negative layout margins? I mean is it suitable for variety of mobile screens?? – Mustafa Adil Apr 25 '16 at 06:51
  • Always try to use "dp" when playing with margins. It will work same across all screens. Read about it from developer documents. For negative margins read this - http://stackoverflow.com/a/10673572/3260244 – Imdad Apr 25 '16 at 06:57