Code example for ActionBarActivity

Methods: onResume

0
 
 
    @Override 
    public void onResume() 
    { 
        super.onResume(); 
 
        // update UI 
        updateUI(); 
    } 
 
    private void initializeUI() 
    { 
        // set subtitle text 
        InterfaceHelper.setSubtitleText(getSupportActionBar(), 
                getResources().getString(R.string.wing_load_calculator_label)); 
 
        // load type spinner 
        Spinner typeSpinner = (Spinner) findViewById(R.id.WingLoadCalculateTypeSpinner);
        typeSpinner.setAdapter(new CalculatorTypeAdapter(this));
        typeSpinner.setOnItemSelectedListener(typeSelectedListener);