Show post view toasts near the views

This commit is contained in:
Ammar Githam 2021-05-23 11:47:15 +09:00
parent 30257a953f
commit 027d2c634a

View File

@ -233,7 +233,7 @@ public final class Utils {
final Toast toast = Toast.makeText(context, text, Toast.LENGTH_SHORT); final Toast toast = Toast.makeText(context, text, Toast.LENGTH_SHORT);
toast.setGravity(Gravity.TOP | Gravity.START, toast.setGravity(Gravity.TOP | Gravity.START,
view.getLeft(), view.getLeft(),
view.getTop() - view.getHeight() - 4); view.getTop());
toast.show(); toast.show();
} }