Skip to content

Instantly share code, notes, and snippets.

@ex3ndr
Created December 11, 2013 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ex3ndr/7909398 to your computer and use it in GitHub Desktop.
Save ex3ndr/7909398 to your computer and use it in GitHub Desktop.
Android StickyHeaders padding temporary fix
package org.telegram.android.ui;
import android.content.Context;
import android.util.AttributeSet;
import se.emilsjolander.stickylistheaders.StickyListHeadersListView;
/**
* Created by ex3ndr on 11.12.13.
*/
public class StickyFix extends StickyListHeadersListView {
public StickyFix(Context context) {
super(context);
}
public StickyFix(Context context, AttributeSet attrs) {
super(context, attrs);
}
public StickyFix(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
@Override
public void setPadding(int left, int top, int right, int bottom) {
if (left == 0 && right == 0) {
return;
}
super.setPadding(left, top, right, bottom);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment