Tabnine Logo
View.getCameraDistance
Code IndexAdd Tabnine to your IDE (free)

How to use
getCameraDistance
method
in
android.view.View

Best Java code snippets using android.view.View.getCameraDistance (Showing top 4 results out of 315)

origin: florent37/ExpectAnim

@Override
public void calculate() {
  for (AnimExpectation expectation : animExpectations) {
    if (expectation instanceof CameraDistanceExpectation) {
      if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
        mCurrentCameraDistance = viewToMove.getCameraDistance();
      }
      final Float cameraDistance = ((CameraDistanceExpectation) expectation).getCalculatedCameraDistance(viewToMove);
      if (cameraDistance != null) mCameraDistance = cameraDistance;
    }
  }
}
origin: robolectric/robolectric

@Test
@Config(minSdk = LOLLIPOP)
public void cameraDistance() {
 view.setCameraDistance(100f);
 assertThat(view.getCameraDistance()).isEqualTo(100f);
}
origin: GcsSloop/diycode

@Override
public void calculate() {
  for (AnimExpectation expectation : animExpectations) {
    if (expectation instanceof CameraDistanceExpectation) {
      if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
        mCurrentCameraDistance = viewToMove.getCameraDistance();
      }
      final Float cameraDistance = ((CameraDistanceExpectation) expectation).getCalculatedCameraDistance(viewToMove);
      if (cameraDistance != null) mCameraDistance = cameraDistance;
    }
  }
}
origin: jbruchanov/AnUitor

data.put("CameraDistance", v.getCameraDistance());
android.viewViewgetCameraDistance

Popular methods of View

  • findViewById
  • setOnClickListener
  • getId
  • setVisibility
  • getLayoutParams
  • getTag
  • getHeight
  • getWidth
  • setTag
  • getContext
  • onDraw
  • getTop
  • onDraw,
  • getTop,
  • setLayoutParams,
  • setBackgroundColor,
  • getMeasuredHeight,
  • getParent,
  • getMeasuredWidth,
  • getBottom,
  • getLeft,
  • layout

Popular in Java

  • Parsing JSON documents to java classes using gson
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best IntelliJ plugins
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