Android Open Source - mobilib Mbl Base Action Bar Activity






From Project

Back to project page mobilib.

License

The source code is released under:

MIT License

If you think the Android project mobilib listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.datdo.mobilib.base;
/*from w w w.j  a  v a 2s  . c  o  m*/
import android.app.Activity;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.view.ViewGroup.LayoutParams;

/**
 * <pre>
 * Super class for all {@link ActionBarActivity}.
 * </pre>
 */
public class MblBaseActionBarActivity extends ActionBarActivity {

    private MblActivityPlugin mPlugin = new MblActivityPlugin();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mPlugin.onCreate(this, savedInstanceState);
    }

    @Override
    protected void onResume() {
        super.onResume();
        mPlugin.onResume(this);
    }

    @Override
    protected void onPause() {
        super.onPause();
        mPlugin.onPause();
    }

    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        mPlugin.onConfigurationChanged(this, newConfig);
    }

    /**
     * @see MblActivityPlugin#isTopActivity(Activity)
     */
    public boolean isTopActivity() {
        return mPlugin.isTopActivity(this);
    }

    @Override
    public void setContentView(int layoutResID) {
        super.setContentView(mPlugin.getContentView(this, layoutResID));
    }

    @Override
    public void setContentView(View view) {
        super.setContentView(mPlugin.getContentView(this, view));
    }

    @Override
    public void setContentView(View view, LayoutParams params) {
        super.setContentView(mPlugin.getContentView(this, view, params));
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        mPlugin.onDestroy(this);
    }

    /**
     * @see MblActivityPlugin#getDecorView(Activity)
     */
    public MblDecorView getDecorView() {
        return mPlugin.getDecorView(this);
    }

    /**
     * @see MblActivityPlugin#setMaxAllowedTrasitionBetweenActivity(Activity, long)
     */
    public void setMaxAllowedTrasitionBetweenActivity(long duration) {
        mPlugin.setMaxAllowedTrasitionBetweenActivity(this, duration);
    }

    /**
     * @see MblActivityPlugin#resetDefaultMaxAllowedTrasitionBetweenActivity(Activity)
     */
    public void resetDefaultMaxAllowedTrasitionBetweenActivity() {
        mPlugin.resetDefaultMaxAllowedTrasitionBetweenActivity(this);
    }
}




Java Source Code List

com.datdo.mobilib.api.DBBase.java
com.datdo.mobilib.api.DBHelper.java
com.datdo.mobilib.api.MblApi.java
com.datdo.mobilib.api.MblCache.java
com.datdo.mobilib.api.MblException.java
com.datdo.mobilib.api.MblSSLCertificateUtils.java
com.datdo.mobilib.base.MblActivityPlugin.java
com.datdo.mobilib.base.MblBaseActionBarActivity.java
com.datdo.mobilib.base.MblBaseActivity.java
com.datdo.mobilib.base.MblBaseAdapter.java
com.datdo.mobilib.base.MblBaseApplication.java
com.datdo.mobilib.base.MblBaseFragmentActivity.java
com.datdo.mobilib.base.MblDecorView.java
com.datdo.mobilib.base.MblNetworkStatusChangedReceiver.java
com.datdo.mobilib.event.MblCommonEvents.java
com.datdo.mobilib.event.MblEventCenter.java
com.datdo.mobilib.event.MblEventListener.java
com.datdo.mobilib.event.MblStrongEventListener.java
com.datdo.mobilib.event.MblWeakArrayList.java
com.datdo.mobilib.imageinput.MblAutoResizeSquareImageView.java
com.datdo.mobilib.imageinput.MblDataInputActivity.java
com.datdo.mobilib.imageinput.MblImageFolderScanner.java
com.datdo.mobilib.imageinput.MblImageInput.java
com.datdo.mobilib.imageinput.MblImagePickingScanEngine.java
com.datdo.mobilib.imageinput.MblPickImageActivity.java
com.datdo.mobilib.imageinput.MblPickImageGridViewAdapter.java
com.datdo.mobilib.imageinput.MblTakeImageActivity.java
com.datdo.mobilib.util.MblAsyncTask.java
com.datdo.mobilib.util.MblImageLoader.java
com.datdo.mobilib.util.MblLinkMovementMethod.java
com.datdo.mobilib.util.MblUrlRecognizer.java
com.datdo.mobilib.util.MblUtils.java
com.datdo.mobilib.widget.MblHorizontalViewPager.java
com.datdo.mobilib.widget.MblListViewWithScrollableItems.java
com.datdo.mobilib.widget.MblSequenceImage.java
com.datdo.mobilib.widget.MblSideMenuEnabledLayout.java
com.datdo.mobilib.widget.MblTouchImageView.java