class TemplateLayout extends FrameLayout {

    @Override
    public void addView(View child, int index, ViewGroup.LayoutParams params) {
        mContainer.addView(child, index, params);
    }

    public  TemplateLayout(Context context, int template, int containerId);
    public  TemplateLayout(Context context, AttributeSet attrs);
    @TargetApi(VERSION_CODES.HONEYCOMB) public  TemplateLayout(Context context, AttributeSet attrs, int defStyleAttr);

}