io.palaima.debugdrawer.DebugDrawer Java Examples
The following examples show how to use
io.palaima.debugdrawer.DebugDrawer.
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: RidesListActivity.java From android-ponewheel with MIT License | 6 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_rides_list); setupToolbar(); progressDialogHandler = new ProgressDialogHandler(this); RecyclerView recyclerView = findViewById(R.id.ride_list_view); rideListAdapter = new RideListAdapter(this, new ArrayList<>()); recyclerView.setLayoutManager(new LinearLayoutManager(this)); refreshList(); recyclerView.setAdapter(rideListAdapter); DebugDrawerAddDummyRide debugDrawerAddDummyRide = new DebugDrawerAddDummyRide(this); new DebugDrawer.Builder(this) .modules( debugDrawerAddDummyRide, new SettingsModule(this) ).build(); getLifecycle().addObserver(debugDrawerAddDummyRide); }
Example #2
Source File: ActivityRepoList.java From AndroidStarter with Apache License 2.0 | 6 votes |
@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 #3
Source File: ActivityMain.java From AndroidStarterAlt with Apache License 2.0 | 6 votes |
@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 #4
Source File: DebugSpectreApplication.java From quill with MIT License | 5 votes |
@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 #5
Source File: MainActivity.java From android-ponewheel with MIT License | 2 votes |
@Override protected void onCreate(Bundle savedInstanceState) { Timber.d( "Starting..."); super.onCreate(savedInstanceState); //Permission to write to storage enableWritingToStorage(); mContext = this; notify = new Notify(); notify.init(MainActivity.this); EventBus.getDefault().register(this); initWakelock(); // this line won't compile? File -> Invalidate caches https://stackoverflow.com/a/42824662/247325 mBinding = DataBindingUtil.setContentView(this, net.kwatts.powtools.R.layout.activity_main); alertsController = new AlertsMvpController(this); setupDarkModes(savedInstanceState); App.INSTANCE.getSharedPreferences().registerListener(this); if (!App.INSTANCE.getSharedPreferences().isEulaAgreed()) { showEula(); } setupOWDevice(); setupToolbar(); mScrollView = findViewById(R.id.logScroller); if (App.INSTANCE.getSharedPreferences().isLoggingEnabled()) { initLogging(); } mChronometer = findViewById(R.id.chronometer); initBatteryChart(); initLightSettings(); initRideModeButtons(); new DebugDrawer.Builder(this) .modules( new DebugDrawerMockBle(this), new SettingsModule(this), new TimberModule() ).build(); handler = new Handler(Looper.getMainLooper()); periodicChallenge(); }