Fix gesture picker misalignment by using constraint ratios#18036
Fix gesture picker misalignment by using constraint ratios#18036Arthur-Milchior merged 1 commit intoankidroid:mainfrom
Conversation
| android:background="@color/transparent" | ||
| app:srcCompat="@drawable/ic_gesture_swipe" /> | ||
|
|
||
| </merge> No newline at end of file |
There was a problem hiding this comment.
Why this change? revert it
| tools:layout_height="400dp" | ||
| tools:layout_width="400dp"> | ||
|
|
||
|
|
|
Hey @criticalAY, thanks for review! Addressed your comments, please take a look. |
|
For some reason I can't squash merge. I wonder whether it's because there is a merge commit in this PR. It'd be great if instead of adding more commit, you amended the previous commit. Now you can use For future PR, you could just use |
cdaeddd to
e487267
Compare
|
Ah, seems like I messed up with the rebase. |
|
Thank you very much @theMr17 Can you please let me know, are you applying to this year GSOC? I've not seen you mentioning you want to apply, but you came back to us just when the candidate phase started. |
|
@Arthur-Milchior It's purely a coincidence that I resumed my contributions during the candidate phase. I'm not applying for GSoC this year, but I might be applying in the future. I completely understand the need to prioritize review time and simpler issues for candidates. I'll focus on wrapping up my currently open PRs and won't start anything new until the candidate phase concludes. Thanks for your kind words! |
|
Hi there @theMr17! This is the OpenCollective Notice for PRs merged from 2025-03-01 through 2025-03-31 If you are interested in compensation for this work, the process with details is here: https://github.com/ankidroid/Anki-Android/wiki/OpenCollective-Payment-Process#how-to-get-paid We only post one comment per person per month to avoid spamming you, regardless of the number of PRs merged, but this note applies to all PRs merged for this month Please understand that our monthly budget is never guaranteed to cover all claims - the cap on payments-per-person may be lower, but we try to make our process as fair and transparent as possible, we just need your understanding. Thanks! |
Purpose / Description
The issue occurred due to a fixed 16dp margin around the outer circles, while the central arrow image scaled dynamically based on available space. This caused misalignment in smaller gesture picker sizes.
Solution:
0.047and0.953), ensuring proportional scaling.Fixes
Approach
Previous Behavior:
16dp.New Behavior:
0.047(4.7%) for the top margin.0.953(95.3%) for the bottom margin.Note: A 4.7% margin from the edges of the layout preserves the
16dpmargin in the original picker size.How Has This Been Tested?
Checklist