io.palaima.debugdrawer.picasso.PicassoModule Java Examples

The following examples show how to use io.palaima.debugdrawer.picasso.PicassoModule. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ActivityRepoList.java    From AndroidStarter with Apache License 2.0 6 votes vote down vote up
@Override
protected void onCreate(final Bundle poSavedInstanceState) {
    super.onCreate(poSavedInstanceState);
    setContentView(R.layout.activity_repo_list);

    ApplicationAndroidStarter.sharedApplication().componentApplication().inject(this);

    ButterKnife.bind(this);

    if (mEnvironment.isDebugDrawerEnabled()) {
        mDebugDrawer = new DebugDrawer.Builder(this).modules(
                new FpsModule(Takt.stock(getApplication())),
                new ScalpelModule(this),
                new PicassoModule(mPicasso),
                new DeviceModule(this),
                new BuildModule(this),
                new NetworkModule(this),
                new SettingsModule(this)
        ).build();
    }
}
 
Example #2
Source File: ActivityMain.java    From AndroidStarterAlt with Apache License 2.0 6 votes vote down vote up
@Override
protected void onCreate(final Bundle poSavedInstanceState) {
    super.onCreate(poSavedInstanceState);
    setContentView(R.layout.activity_main);

    ApplicationAndroidStarter.sharedApplication().componentApplication().inject(this);

    ButterKnife.bind(this);

    if (mEnvironment.isDebugDrawerEnabled()) {
        mDebugDrawer = new DebugDrawer.Builder(this).modules(
                new FpsModule(Takt.stock(getApplication())),
                new ScalpelModule(this),
                new PicassoModule(mPicasso),
                new DeviceModule(this),
                new BuildModule(this),
                new NetworkModule(this),
                new SettingsModule(this)
        ).build();
    }

    mRouter = Conductor.attachRouter(this, mViewGroupContainer, poSavedInstanceState);
    if (!mRouter.hasRootController()) {
        mRouter.setRoot(RouterTransaction.with(new ControllerRepoList()));
    }
}
 
Example #3
Source File: DebugSpectreApplication.java    From quill with MIT License 5 votes vote down vote up
@Override
public void addDebugDrawer(@NonNull Activity activity) {
    new DebugDrawer.Builder(activity).modules(
            new ScalpelModule(activity),
            new OkHttp3Module(mOkHttpClient),
            new PicassoModule(mPicasso),
            new DeviceModule(activity),
            new BuildModule(activity),
            new SettingsModule(activity)
    ).build();
}
 
Example #4
Source File: ModuleRest.java    From AndroidStarter with Apache License 2.0 4 votes vote down vote up
@Provides
@Singleton
public PicassoModule providePicassoModule(@NonNull final Picasso poPicasso) {
    return new PicassoModule(poPicasso);
}
 
Example #5
Source File: MockModuleRest.java    From AndroidStarter with Apache License 2.0 4 votes vote down vote up
@Override
public PicassoModule providePicassoModule(@NonNull final Picasso poPicasso) {
    return mPicassoModule;
}
 
Example #6
Source File: ModuleRest.java    From AndroidStarterAlt with Apache License 2.0 4 votes vote down vote up
@Provides
@Singleton
public PicassoModule providePicassoModule(@NonNull final Picasso poPicasso) {
    return new PicassoModule(poPicasso);
}
 
Example #7
Source File: MockModuleRest.java    From AndroidStarterAlt with Apache License 2.0 4 votes vote down vote up
@Override
public PicassoModule providePicassoModule(@NonNull final Picasso poPicasso) {
    return mPicassoModule;
}