private void inflateContentContainer ( ) { if ( contentContainer == null ) { contentContainer = new RelativeLayout ( getContext ( ) ) ; contentContainer . setId ( R . id . content_container ) ; LinearLayout . LayoutParams layoutParams = new LinearLayout . LayoutParams ( LinearLayout . LayoutParams . MATCH_PARENT , 0 ) ; layoutParams . weight = 1 ; contentContainer . setLayoutParams ( layoutParams ) ; } else { contentContainer . removeAllViews ( ) ; } }
Inflates the container which contains the dialog s content if it is not yet inflated .