Skip to content
Snippets Groups Projects
Commit 5dd430f5 authored by Alexandre Lision's avatar Alexandre Lision
Browse files

change constructor of WrappedListView

parent 48cf8a78
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ public class StickyListHeadersListView extends FrameLayout { ...@@ -83,7 +83,7 @@ public class StickyListHeadersListView extends FrameLayout {
super(context, attrs, defStyle); super(context, attrs, defStyle);
// Initialize the list // Initialize the list
mList = new WrapperViewList(context); mList = new WrapperViewList(context, attrs);
mDivider = mList.getDivider(); mDivider = mList.getDivider();
mDividerHeight = mList.getDividerHeight(); mDividerHeight = mList.getDividerHeight();
......
...@@ -8,6 +8,7 @@ import android.content.Context; ...@@ -8,6 +8,7 @@ import android.content.Context;
import android.graphics.Canvas; import android.graphics.Canvas;
import android.graphics.Rect; import android.graphics.Rect;
import android.os.Build; import android.os.Build;
import android.util.AttributeSet;
import android.view.View; import android.view.View;
import android.widget.AbsListView; import android.widget.AbsListView;
import android.widget.ListView; import android.widget.ListView;
...@@ -25,8 +26,8 @@ class WrapperViewList extends ListView { ...@@ -25,8 +26,8 @@ class WrapperViewList extends ListView {
private Field mSelectorPositionField; private Field mSelectorPositionField;
private boolean mClippingToPadding = true; private boolean mClippingToPadding = true;
public WrapperViewList(Context context) { public WrapperViewList(Context context, AttributeSet attrs) {
super(context); super(context, attrs);
// Use reflection to be able to change the size/position of the list // Use reflection to be able to change the size/position of the list
// selector so it does not come under/over the header // selector so it does not come under/over the header
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment