private void inflateLayout ( ) { setContentView ( isSplitScreen ( ) ? R . layout . preference_activity_tablet : R . layout . preference_activity_phone ) ; frameLayout = findViewById ( R . id . frame_layout ) ; navigationFragmentContainer = findViewById ( R . id . navigation_fragment_container ) ; cardView = findViewById ( R . id . card_view ) ; toolbar = findViewById ( R . id . toolbar ) ; toolbarLarge = findViewById ( R . id . large_toolbar ) ; breadCrumbToolbar = findViewById ( R . id . bread_crumb_toolbar ) ; buttonBar = findViewById ( R . id . wizard_button_bar ) ; nextButton = findViewById ( R . id . next_button ) ; nextButton . setOnClickListener ( createNextButtonListener ( ) ) ; backButton = findViewById ( R . id . back_button ) ; backButton . setOnClickListener ( createBackButtonListener ( ) ) ; finishButton = findViewById ( R . id . finish_button ) ; finishButton . setOnClickListener ( createFinishButtonListener ( ) ) ; buttonBarShadowView = findViewById ( R . id . wizard_button_bar_shadow_view ) ; toolbarShadowView = findViewById ( R . id . toolbar_shadow_view ) ; breadCrumbShadowView = findViewById ( R . id . bread_crumb_shadow_view ) ; }
Inflates the activity s layout depending on whether the split screen layout is used or not .