congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BackgroundToForegroundTransformer
Code IndexAdd Tabnine to your IDE (free)

How to use
BackgroundToForegroundTransformer
in
com.ocnyang.pagetransformerhelp.transformer

Best Java code snippets using com.ocnyang.pagetransformerhelp.transformer.BackgroundToForegroundTransformer (Showing top 2 results out of 315)

origin: OCNYang/PageTransformerHelp

@Override
protected void onTransform(View view, float position) {
  final float height = view.getHeight();
  final float width = view.getWidth();
  final float scale = min(position < 0 ? 1f : Math.abs(1f - position), 0.5f);
  view.setScaleX(scale);
  view.setScaleY(scale);
  view.setPivotX(width * 0.5f);
  view.setPivotY(height * 0.5f);
  view.setTranslationX(position < 0 ? width * position : -width * position * 0.25f);
}
origin: OCNYang/PageTransformerHelp

case R.id.BackgroundToForegroundTransformer:
  getSupportActionBar().setTitle("BackgroundToForegroundTransformer");
  mBannerViewPager.setPageTransformer(new BackgroundToForegroundTransformer());
  break;
case R.id.CubeInTransformer:
com.ocnyang.pagetransformerhelp.transformerBackgroundToForegroundTransformer

Most used methods

  • <init>
  • min

Popular in Java

  • Updating database using SQL prepared statement
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • getApplicationContext (Context)
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now