Java 类android.support.v4.app.SupportActivity 实例源码

项目:CompositeAndroid    文件:ActivityPlugin.java   
<T extends SupportActivity.ExtraData> T getExtraData(final CallFun1<T, Class<T>> superCall,
        final Class<T> extraDataClass) {
    synchronized (mSuperListeners) {
        mSuperListeners.push(superCall);
        return getExtraData(extraDataClass);
    }
}
项目:CompositeAndroid    文件:ActivityPlugin.java   
void putExtraData(final CallVoid1<SupportActivity.ExtraData> superCall,
        final SupportActivity.ExtraData extraData) {
    synchronized (mSuperListeners) {
        mSuperListeners.push(superCall);
        putExtraData(extraData);
    }
}
项目:mobile-client    文件:TwitterSearchFragment.java   
@Override
public void onAttach(SupportActivity activity) {
    super.onAttach(activity);

    setRetainInstance(true);

    if (mState == null) {
        mState = new State();
    }

    mState.mReceiver.setReceiver(this);
}
项目:mobile-client    文件:UIUtils.java   
/**
 * Set title and color of action bar.
 * 
 * @param activity
 * @param title
 * @param color
 */
public static void setActionBarData(SupportActivity activity, String title,
        int color) {
    if (activity != null) {
        final ActivityHelper activityHelper = ((BaseActivity) activity)
                .getActivityHelper();
        activity.setTitle(title);
        if (color != -1) {
            activityHelper.setActionBarColor(color);
        }
    }
}
项目:CompositeAndroid    文件:CompositeActivity.java   
@Override
public <T extends SupportActivity.ExtraData> T getExtraData(final Class<T> extraDataClass) {
    return delegate.getExtraData(extraDataClass);
}
项目:CompositeAndroid    文件:CompositeActivity.java   
@Override
public void putExtraData(final SupportActivity.ExtraData extraData) {
    delegate.putExtraData(extraData);
}
项目:CompositeAndroid    文件:CompositeActivity.java   
@Override
public <T extends SupportActivity.ExtraData> T super_getExtraData(
        final Class<T> extraDataClass) {
    return super.getExtraData(extraDataClass);
}
项目:CompositeAndroid    文件:CompositeActivity.java   
@Override
public void super_putExtraData(final SupportActivity.ExtraData extraData) {
    super.putExtraData(extraData);
}
项目:CompositeAndroid    文件:ActivityPlugin.java   
public <T extends SupportActivity.ExtraData> T getExtraData(final Class<T> extraDataClass) {
    verifyMethodCalledFromDelegate("getExtraData(Class<T>)");
    return ((CallFun1<T, Class<T>>) mSuperListeners.pop()).call(extraDataClass);
}
项目:CompositeAndroid    文件:ActivityPlugin.java   
public void putExtraData(final SupportActivity.ExtraData extraData) {
    verifyMethodCalledFromDelegate("putExtraData(SupportActivity.ExtraData)");
    ((CallVoid1<SupportActivity.ExtraData>) mSuperListeners.pop()).call(extraData);
}
项目:mobile-client    文件:ActivityHelper.java   
public static ActivityHelper createInstance(SupportActivity activity) {
    return new ActivityHelper(activity);
}
项目:mobile-client    文件:ActivityHelper.java   
protected ActivityHelper(SupportActivity activity) {
    mActivity = activity;
}
项目:CompositeAndroid    文件:ICompositeActivity.java   
<T extends SupportActivity.ExtraData> T getExtraData(final Class<T> extraDataClass);
项目:CompositeAndroid    文件:ICompositeActivity.java   
void putExtraData(final SupportActivity.ExtraData extraData);
项目:CompositeAndroid    文件:ICompositeActivity.java   
<T extends SupportActivity.ExtraData> T super_getExtraData(final Class<T> extraDataClass);
项目:CompositeAndroid    文件:ICompositeActivity.java   
void super_putExtraData(final SupportActivity.ExtraData extraData);