I have a res/layout/main.xml including these elements and others:
I have the same problem because in my custom view I overrided constructor but invoked super contructor withot attrs paramete. That is copy paste)
My previous constructor version:
public TabsAndFilterRelativeLayout(Context context, AttributeSet attrs) {
super(context);
}
Now I have:
public TabsAndFilterRelativeLayout(Context context, AttributeSet attrs) {
super(context, attrs);}
And that works!