Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

CoordinatesProvider

public interface CoordinatesProvider

android.support.test.espresso.action.CoordinatesProvider
Known Indirect Subclasses


Interface to implement calculation of Coordinates.

Summary

Public methods

abstract float[] calculateCoordinates(View view)

Calculates coordinates of given view.

Public methods

calculateCoordinates

float[] calculateCoordinates (View view)

Calculates coordinates of given view.

Parameters
view View: the View which is used for the calculation.

Returns
float[] a float[] with x and y values of the calculated coordinates.