Android Open Source - slidingdebugmenu Demo Module






From Project

Back to project page slidingdebugmenu.

License

The source code is released under:

Apache License

If you think the Android project slidingdebugmenu 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 co.lemonlabs.android.slidingdebugmenu.demo;
/*from   www  .j a v  a 2 s.co m*/
import android.content.Context;
import co.lemonlabs.android.slidingdebugmenu.SlidingDebugMenuModule;
import co.lemonlabs.android.slidingdebugmenu.modules.BuildModule;
import co.lemonlabs.android.slidingdebugmenu.modules.LocationModule;
import co.lemonlabs.android.slidingdebugmenu.modules.LogModule;
import co.lemonlabs.android.slidingdebugmenu.modules.MenuModule;
import co.lemonlabs.android.slidingdebugmenu.modules.NetworkModule;
import dagger.Module;
import dagger.Provides;

import java.util.ArrayList;
import java.util.List;

@Module(
    includes = {
        SlidingDebugMenuModule.class
    },
    injects = {
        DemoActivity.class
    }
)
public class DemoModule {

    private final Context context;

    public DemoModule(Context context) {
        this.context = context;
    }

    @Provides Context provideContext() {
        return context;
    }

    @Provides List<MenuModule> provideMenuModules(BuildModule build, LocationModule location, LogModule log, NetworkModule network) {
        List<MenuModule> modules = new ArrayList<>();

        // Custom, app specific module
        modules.add(new LocaleModule());

        modules.add(build);
        modules.add(location);
        modules.add(log);
        modules.add(network);

        return modules;
    }

}




Java Source Code List

co.lemonlabs.android.slidingdebugmenu.SlidingDebugMenuModule.java
co.lemonlabs.android.slidingdebugmenu.SlidingDebugMenu.java
co.lemonlabs.android.slidingdebugmenu.controllers.LocationController.java
co.lemonlabs.android.slidingdebugmenu.controllers.NetworkController.java
co.lemonlabs.android.slidingdebugmenu.demo.DemoActivity.java
co.lemonlabs.android.slidingdebugmenu.demo.DemoModule.java
co.lemonlabs.android.slidingdebugmenu.demo.LocaleModule.java
co.lemonlabs.android.slidingdebugmenu.modules.BuildModule.java
co.lemonlabs.android.slidingdebugmenu.modules.LocationModule.java
co.lemonlabs.android.slidingdebugmenu.modules.LogModule.java
co.lemonlabs.android.slidingdebugmenu.modules.MenuModule.java
co.lemonlabs.android.slidingdebugmenu.modules.NetworkModule.java
co.lemonlabs.android.slidingdebugmenu.modules.events.LocationEvent.java
co.lemonlabs.android.slidingdebugmenu.modules.events.NetworkChangeEvent.java
co.lemonlabs.android.slidingdebugmenu.receivers.NetworkReceiver.java
co.lemonlabs.android.slidingdebugmenu.util.Log.java
co.lemonlabs.android.slidingdebugmenu.views.ModuleSimpleProperty.java
co.lemonlabs.android.slidingdebugmenu.views.ModuleSpinnerProperty.java
co.lemonlabs.android.slidingdebugmenu.views.ModuleTitle.java