private void inflate ( ) { ( ( LayoutInflater ) getContext ( ) . getSystemService ( Context . LAYOUT_INFLATER_SERVICE ) ) . inflate ( R . layout . ebm__menu , this , true ) ; mOverlay = findViewById ( R . id . ebm__menu_overlay ) ; mMidContainer = findViewById ( R . id . ebm__menu_middle_container ) ; mLeftContainer = findViewById ( R . id . ebm__menu_left_container ) ; mRightContainer = findViewById ( R . id . ebm__menu_right_container ) ; mMidText = ( TextView ) findViewById ( R . id . ebm__menu_middle_text ) ; mLeftText = ( TextView ) findViewById ( R . id . ebm__menu_left_text ) ; mRightText = ( TextView ) findViewById ( R . id . ebm__menu_right_text ) ; mCloseBtn = ( ImageButton ) findViewById ( R . id . ebm__menu_close_image ) ; mMidBtn = ( ImageButton ) findViewById ( R . id . ebm__menu_middle_image ) ; mRightBtn = ( ImageButton ) findViewById ( R . id . ebm__menu_right_image ) ; mLeftBtn = ( ImageButton ) findViewById ( R . id . ebm__menu_left_image ) ; sWidth = ScreenHelper . getScreenWidth ( getContext ( ) ) ; sHeight = ScreenHelper . getScreenHeight ( getContext ( ) ) ; mMidBtn . setEnabled ( false ) ; mRightBtn . setEnabled ( false ) ; mLeftBtn . setEnabled ( false ) ; mCloseBtn . setOnClickListener ( this ) ; mMidBtn . setOnClickListener ( this ) ; mRightBtn . setOnClickListener ( this ) ; mLeftBtn . setOnClickListener ( this ) ; mOverlay . setOnClickListener ( this ) ; }
Inflates the view