FileDocCategorySizeDatePackage
PhotoViewActivity.javaAPI DocAndroid 5.1 API3435Thu Mar 12 22:22:52 GMT 2015com.android.ex.photo

PhotoViewActivity

public class PhotoViewActivity extends android.support.v4.app.FragmentActivity implements PhotoViewController.ActivityInterface
Activity to view the contents of an album.

Fields Summary
private PhotoViewController
mController
private ActionBarWrapper
mActionBar
Constructors Summary
Methods Summary
public PhotoViewControllercreateController()

        return new PhotoViewController(this);
    
public ActionBarInterfacegetActionBarInterface()

        if (mActionBar == null) {
            mActionBar = new ActionBarWrapper(getActionBar());
        }
        return mActionBar;
    
public android.content.ContextgetContext()

        return this;
    
public PhotoViewControllergetController()

        return mController;
    
protected voidonActivityResult(int requestCode, int resultCode, android.content.Intent data)

        super.onActivityResult(requestCode, resultCode, data);
        mController.onActivityResult(requestCode, resultCode, data);
    
public voidonBackPressed()

        if (!mController.onBackPressed()) {
            super.onBackPressed();
        }
    
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);
        mController = createController();
        mController.onCreate(savedInstanceState);
    
public booleanonCreateOptionsMenu(android.view.Menu menu)

        return mController.onCreateOptionsMenu(menu) || super.onCreateOptionsMenu(menu);
    
protected voidonDestroy()

        mController.onDestroy();
        super.onDestroy();
    
public booleanonOptionsItemSelected(android.view.MenuItem item)

        return mController.onOptionsItemSelected(item) || super.onOptionsItemSelected(item);
    
protected voidonPause()

        mController.onPause();
        super.onPause();
    
public booleanonPrepareOptionsMenu(android.view.Menu menu)

        return mController.onPrepareOptionsMenu(menu) || super.onPrepareOptionsMenu(menu);
    
protected voidonResume()

        super.onResume();
        mController.onResume();
    
public voidonSaveInstanceState(android.os.Bundle outState)

        super.onSaveInstanceState(outState);
        mController.onSaveInstanceState(outState);
    
protected voidonStart()

        super.onStart();
        mController.onStart();
    
protected voidonStop()

        mController.onStop();
        super.onStop();