Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For #10: Prevent overlap of pause and resume buttons #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

czlucius
Copy link

@czlucius czlucius commented Oct 4, 2022

Arranges the buttons in a horizontal LinearLayout to prevent overlap.

@naXa777 naXa777 self-requested a review October 4, 2022 22:41
@czlucius
Copy link
Author

czlucius commented Oct 5, 2022

@naXa777 can you review this PR and see if it's ok?
Thanks

@naXa777 naXa777 linked an issue Oct 23, 2022 that may be closed by this pull request
@naXa777
Copy link
Owner

naXa777 commented Oct 23, 2022

@czlucius please resolve the conflict

Copy link
Owner

@naXa777 naXa777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually your fix works: pause and stop buttons don't overlap anymore. tested in landscape split screen mode on Android 7 / Nexus 5.

BEFORE changes
image

AFTER changes
image

But there's a new problem now: circular progress bar is on top. Please fix it, post demo screenshots, and I'll merge the PR.

android:layout_gravity="center_vertical"
android:layout_marginHorizontal="16dp"
app:backgroundTint="@color/primary"
app:elevation="6dp"
Copy link
Owner

@naXa777 naXa777 Oct 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for some reason, app:elevation has no effect after this change.
to simulate a small screen, I'm using a split screen in landscape mode for testing. Device: Android 12 / Google Pixel 3. please take a look at the screenshots below.

BEFORE your changes (master branch)

1
image

2
image

AFTER your changes

1
image

2
image

as you can see, there's a visual regression. RECORD/STOP and PAUSE/RESUME buttons are now overlapping with the circular progress bar. But buttons should be on top.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resume button overlaps Stop button
2 participants