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 .