Account/inbox 1/3 touch delegate

This commit is contained in:
M66B 2022-03-12 19:11:07 +01:00
parent 6572ad77bc
commit 05edc4257a
1 changed files with 9 additions and 6 deletions

View File

@ -160,12 +160,15 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
view.post(new Runnable() {
@Override
public void run() {
int left = ibInbox.getLeft();
int right = ibInbox.getRight();
if (view.getLayoutDirection() == View.LAYOUT_DIRECTION_LTR)
left = Math.min(left, right - view.getHeight());
else
right = Math.max(right, left + view.getHeight());
int left;
int right;
if (view.getLayoutDirection() == View.LAYOUT_DIRECTION_LTR) {
left = view.getWidth() - view.getWidth() / 3;
right = view.getWidth();
} else {
left = 0;
right = view.getWidth() / 3;
}
Rect rect = new Rect(
left,
view.getTop(),