避免列表 overscroll 不覆盖宽度

This commit is contained in:
seven332 committed 2014-12-07 22:55:01 +08:00
1 parent 241dc25291
commit 1d6f92bbae
1 file changed
+2 -3
@@ -227,9 +227,8 @@ public class GalleryListView extends FrameLayout implements RefreshLayout.OnFoot
private void setItemMargin(int margin) {
int halfMargin = margin / 2;
mItemDecoration.setMargin(margin);
setPadding(halfMargin, getPaddingTop(), halfMargin, getPaddingBottom());
mEasyRecyclerView.setPadding(mEasyRecyclerView.getPaddingLeft(), halfMargin,
mEasyRecyclerView.getPaddingRight(), mEasyRecyclerView.getPaddingBottom());
mEasyRecyclerView.setPadding(halfMargin, halfMargin,
halfMargin, mEasyRecyclerView.getPaddingBottom());
}
public void setEnabledHeader(boolean enabled) {