public void setContentView(int layoutResId) {
        LayoutInflater layoutInflater = LayoutInflater.from(getActivity());
        View contentView = layoutInflater.inflate(layoutResId, null);
        setContentView(contentView);
    }
Set the content content from a layout resource.

@param layoutResId Resource ID to be inflated.
@see #setContentView(android.view.View)
@see #getContentView()
sherlockprogressfragment/src/com/devspark/progressfragment/SherlockProgressFragment.java