Add sliding animation when a new message is received.

This commit is contained in:
Alex Hart
2021-10-20 16:40:34 -03:00
committed by Greyson Parrelli
parent f198b890fa
commit 2167522f7d
6 changed files with 136 additions and 23 deletions

View File

@@ -105,6 +105,10 @@ public final class Projection {
return new Projection(x + xTranslation, y, width, height, corners);
}
public @NonNull Projection translateY(float yTranslation) {
return new Projection(x, y + yTranslation, width, height, corners);
}
public @NonNull Projection withDimensions(int width, int height) {
return new Projection(x, y, width, height, corners);
}