I think you need to implement constructors with different parameters:
public CustomActionbarComponent(Context context) {
super(context);
}
public CustomActionbarComponent(Context context, AttributeSet attrs) {
super(context, attrs);
}
public CustomActionbarComponent(Context context, AttributeSet attrs, int defStyle) {
super(context);
}
Maybe the custom view created from xml use another constructor. That's the only difference with your code and my working custom actionbar.
Hope it helps!