bauerca / drag-sort-listview

Android ListView with drag and drop reordering.
3.2k stars 1.44k forks source link

The width of item layout not fit with of the screen #117

Closed MrTranduchuy closed 10 years ago

MrTranduchuy commented 10 years ago

Hello,

I don't know I get this problem, I really try to find out information related to my project. But it seems like related to your library.

  1. I make the the simple item layout, like this : simple_list_item
  2. I can load data to show to the Default List View (variable : ListView listView), like this : (It shows exactly) default_listview
  3. But when I change from Default List View to your Drag Sort List View (variable : DragSortListView dragSortListView), like this : (It shows wrong construction) dragsort_listview

It looks like your library use margin? Can u tell me how to fix this basic problem?

p/s : I have not already used margin, padding yet.

johnuopini commented 10 years ago

I'm fighting with this issue since 2 days as well

MrTranduchuy commented 10 years ago

I dont know why the sample code not automatically scale as above.

The different of my project and the sample code is : I used layout_weight and weightSum in LinearLayout to assign portion of views.

johnuopini commented 10 years ago

Please check out this comment, this worked for me: https://github.com/bauerca/drag-sort-listview/issues/73#issuecomment-13994384

MrTranduchuy commented 10 years ago

Oh, it works with me too, thanks.