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

Add layout margin to improve spacing for best visualizing #198

Merged

Conversation

MostafaMohamed2002
Copy link
Contributor

Contributor checklist


Description

Related issue

Copy link

github-actions bot commented Oct 14, 2024

Thank you for the pull request!

The Scribe team will do our best to address your contribution as soon as we can. The following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :)

If you're not already a member of our public Matrix community, please consider joining! We'd suggest using Element as your Matrix client, and definitely join the General and Android rooms once you're in. Also consider joining our bi-weekly Saturday dev syncs. It'd be great to have you!

Maintainer checklist

  • The linting and formatting workflows within the PR checks do not indicate new errors in the files changed

  • The CHANGELOG has been updated with a description of the changes for the upcoming release and the corresponding issue (if necessary)

@MostafaMohamed2002
Copy link
Contributor Author

hey @andrewtavis I’d appreciate it if you could review it and provide your feedback.

image image image
image image image
image

@andrewtavis
Copy link
Member

@angrezichatterbox and @henrikth93: Could you two take a quick look and provide your opinions here :) So far is looking really good to me 😊 Maybe some of the margins could be a bit more, but then everything's already in a card, so we don't want it to be too much.

Thanks for the PR, @MostafaMohamed2002!

@andrewtavis andrewtavis added the hacktoberfest-accepted Accepted as a part of Hacktoberfest label Oct 14, 2024
@henrikth93
Copy link
Member

I think it looks good!

Copy link
Member

@henrikth93 henrikth93 left a comment

Choose a reason for hiding this comment

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

Looks good

Copy link
Member

@angrezichatterbox angrezichatterbox left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @MostafaMohamed2002.

Could the bottom padding be adjusted a bit for the about page, as it is not scrollable for some devices? Could the padding below the app settings recycler view be reduced a bit so that when Install Keyboard button is not moved so far down? After these changes, the PR would be great.

Also, I have noticed a bug I don't know if it's just for me but the recycler view consisting of keyboard language seems to increase its size when moving to the page from other pages. It is present in the current main for me. Is it present for others?

@MostafaMohamed2002
Copy link
Contributor Author

MostafaMohamed2002 commented Oct 18, 2024

Could the bottom padding be adjusted a bit for the about page, as it is not scrollable for some devices?

how it's not scrollable for some devices ? could you show me ?

@MostafaMohamed2002
Copy link
Contributor Author

Could the padding below the app settings recycler view be reduced a bit so that when Install Keyboard button is not moved so far down?

i've fixed this

before after
Screenshot_1729274103 Screenshot_1729274128

@angrezichatterbox
Copy link
Member

Could the bottom padding be adjusted a bit for the about page, as it is not scrollable for some devices?

how it's not scrollable for some devices ? could you show me ?

The About page is not scrollable for me in Medium Phone API 35.

Image reference is given below
Screenshot 2024-10-20 at 9 50 06 PM

I am not able to scroll beyond that.

Apologies for the delay in response.

@Linfye
Copy link
Collaborator

Linfye commented Oct 30, 2024

@angrezichatterbox I tested the code from the main branch on my phone, and the About page still cannot be scrolled, which should not be an bug introduced by this PR.

The screen size of my development environment is larger, and I don't need to scroll on this page, so I haven't noticed this problem before.We can open a new issue to address this bug. :)

cc @andrewtavis

@angrezichatterbox
Copy link
Member

@angrezichatterbox I tested the code from the main branch on my phone, and the About page still cannot be scrolled, which should not be an bug introduced by this PR.

The screen size of my development environment is larger, and I don't need to scroll on this page, so I haven't noticed this problem before.We can open a new issue to address this bug. :)

cc @andrewtavis

I thought of fixing it in this PR as there was an easy fix present for this. The layout height of the fragment_about and fragment_settings can be changed to wrap_content and an Empty view of 50dp could be added to the bottom. I think this would make it responsive for all devices.

@angrezichatterbox
Copy link
Member

@angrezichatterbox I tested the code from the main branch on my phone, and the About page still cannot be scrolled, which should not be an bug introduced by this PR.
The screen size of my development environment is larger, and I don't need to scroll on this page, so I haven't noticed this problem before.We can open a new issue to address this bug. :)
cc @andrewtavis

I thought of fixing it in this PR as there was an easy fix present for this. The layout height of the fragment_about and fragment_settings can be changed to wrap_content and an Empty view of 50dp could be added to the bottom. I think this would make it responsive for all devices.

Thanks, @Linfye for checking the bug with the main branch as well.

@andrewtavis
Copy link
Member

Would you be able to handle the merge conflicts here, @MostafaMohamed2002? Please let us know if you need any support! :)

@MostafaMohamed2002
Copy link
Contributor Author

Would you be able to handle the merge conflicts here, @MostafaMohamed2002? Please let us know if you need any support! :)

I'll try to do my best cause I'm on the phone , can't use my laptop for a couple of days 🥲

@andrewtavis
Copy link
Member

Can also be done in a couple days, @MostafaMohamed2002! No stress :)

@MostafaMohamed2002
Copy link
Contributor Author

Can also be done in a couple days, @MostafaMohamed2002! No stress :)

That Sounds Great 👍

@MahmoudMabrok
Copy link
Contributor

I think we can proceed with PR, right @andrewtavis @angrezichatterbox .

@andrewtavis
Copy link
Member

@angrezichatterbox will get to this per a discussion we had 😊 Thanks for the ping, @MahmoudMabrok!

@angrezichatterbox
Copy link
Member

It is ready for a review and then merge :)

@andrewtavis
Copy link
Member

Last thing that's needed here post merging in main is to hook back in the third party licenses page as the option to navigate to it on the About page isn't showing up.

@angrezichatterbox
Copy link
Member

Is the option for the third-party licenses still not visible?

@andrewtavis
Copy link
Member

As of last commit it was, @angrezichatterbox :)

@angrezichatterbox
Copy link
Member

As of last commit it was, @angrezichatterbox :)

I will look into it and fix it :)

@angrezichatterbox
Copy link
Member

Could I get which device your testing it on ?

@andrewtavis
Copy link
Member

Could be, sure 🤔 If you're seeing it, then I'll try another device and we can go from there.

@angrezichatterbox
Copy link
Member

Could be, sure 🤔 If you're seeing it, then I'll try another device and we can go from there.

Could I get which device the thing was not visible to you? I want it to be responsive for all devices.

@andrewtavis
Copy link
Member

Was at work and an event for work all day. Is a Pixel 8 Pro API 35 emulator :) Screenshot of what I'm seeing is:

Screenshot_20241113_001507

@angrezichatterbox
Copy link
Member

For some reason, it is visible for me in Pixel 8 Pro API 35.

Screenshot 2024-11-14 at 12 13 39 PM

@MahmoudMabrok
Copy link
Contributor

For some reason, it is visible for me in Pixel 8 Pro API 35.

Screenshot 2024-11-14 at 12 13 39 PM

We need to make sure it is scrolling.

We can add extra items manually and check.

@angrezichatterbox
Copy link
Member

We need to make sure it is scrolling.

We can add extra items manually and check.

I have added padding to both the recycler view and linear layout which contains the scroll view. This would be fine for the scrolling right.

@angrezichatterbox
Copy link
Member

Now the page must be responsive for all devices.

@andrewtavis
Copy link
Member

Will check when I get home. Thanks, @angrezichatterbox!

@MahmoudMabrok
Copy link
Contributor

Will check when I get home. Thanks, @angrezichatterbox!

Just a joke, if PR of enhance pipeline was merged, so you will not need to checkout and build app, as apk was already generated in PR , all we need is to download apk and put on device (simulator or real)

so this might allow us to test PRs that is UI without need to build locally (we can by phone download apk and try it).

@andrewtavis
Copy link
Member

I do most of my reviews at home so I can have time to relax on commutes 😊 Also beyond that, that in particular won't work for me as I'm on iOS :)

Copy link
Member

@andrewtavis andrewtavis left a comment

Choose a reason for hiding this comment

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

Is working great now 😊 Thanks so much @MostafaMohamed2002 for the great work, @MahmoudMabrok for the review, and @angrezichatterbox for reviewing and bringing us all home 🚀 Wonderful collaboration all :)

@andrewtavis andrewtavis merged commit 0a8596d into scribe-org:main Nov 14, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Accepted as a part of Hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants