jp.wasabeef.takt.Takt Java Examples
The following examples show how to use
jp.wasabeef.takt.Takt.
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 |
@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 |
@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: InternalDroidconApp.java From droidconat-2016 with Apache License 2.0 | 5 votes |
private void displayFps(boolean enable) { if (DISPLAY_FPS && Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { if (enable) { Takt.stock(this).play(); } else { Takt.finish(); } } }
Example #4
Source File: FpsModule.java From DebugDrawer with Apache License 2.0 | 5 votes |
public FpsModule(@NonNull Takt.Program program) { if (!HAS_TAKT) { throw new RuntimeException("Takt dependency is not found"); } this.program = program; }
Example #5
Source File: MainApplication.java From BlurView with Apache License 2.0 | 4 votes |
public void onCreate() { super.onCreate(); Takt.stock(this).size(20f).play(); }
Example #6
Source File: MainApplication.java From BlurView with Apache License 2.0 | 4 votes |
@Override public void onTerminate() { Takt.finish(); super.onTerminate(); }