use of org.thoughtcrime.securesms.util.Projection in project Signal-Android by signalapp.
the class ConversationItem method isTouchBelowBoundary.
private boolean isTouchBelowBoundary(@NonNull View child) {
Projection childProjection = Projection.relativeToParent(this, child, null);
float childBoundary = childProjection.getY() + childProjection.getHeight();
return lastYDownRelativeToThis > childBoundary;
}
use of org.thoughtcrime.securesms.util.Projection in project Signal-Android by signalapp.
the class ConversationItem method getProjectionTop.
private static int getProjectionTop(@NonNull View child) {
Projection projection = Projection.relativeToViewRoot(child, null);
int y = (int) projection.getY();
projection.release();
return y;
}
Aggregations