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

chore: use dimension for most layout distances #201

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

khwolf
Copy link

@khwolf khwolf commented Dec 31, 2023

Define some dimensions in dimes.xml and reuse them as often as possible to unify the layout and make changing dimensions easier. (Might be a future feature to use more or less spacing)

Define some dimensions in dimes.xml and reuse them as often as possible to unify the layout and make changing dimensions easier.
(Might be a future feature to use more or less spacing)
android:textSize="@dimen/font_size_home_date"
android:layout_marginTop="@dimen/_94sdp"
android:layout_marginTop="@dimen/_88sdp"
Copy link
Collaborator

Choose a reason for hiding this comment

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

should this be like margin_top_huge?

Copy link
Author

Choose a reason for hiding this comment

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

This one is special, as the top date is measured from the top of the parent, although the clock is in between. So maybe margin_top_home_date would be better?

Copy link
Collaborator

Choose a reason for hiding this comment

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

agreed, that would be better. I wasn't entirely sure of the rationale for the change regardless, so this is helpful context

Copy link
Collaborator

Choose a reason for hiding this comment

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

uh, @jkuester this was awaiting changes

Copy link
Owner

Choose a reason for hiding this comment

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

Whoops! 🤦 I misinterpreted your last comment without realizing @khwolf had offered an alternative in the previous comment....

I also just cut the beta release 😅, but if this is a necessary change we can get another PR up and merged before dropping 2.1.0...

Copy link
Collaborator

Choose a reason for hiding this comment

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

not necessary, it was just to round out the change. doesn't need to hold up the release

Copy link
Author

@khwolf khwolf left a comment

Choose a reason for hiding this comment

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

Would like to hear your opinion to my two comments.

Copy link
Owner

@jkuester jkuester left a comment

Choose a reason for hiding this comment

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

Thank you! This will greatly help keep things more consistent going forwards!

@jkuester jkuester changed the title Use dimension for most distances chore: use dimension for most layout distances Jan 3, 2024
@jkuester jkuester merged commit 96a334e into jkuester:master Jan 3, 2024
1 check passed
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.

3 participants