I extracted dimension values into resource files #1151. #1219

Open
veritaslogix wants to merge 2 commits from veritaslogix/master into master
veritaslogix commented 2021-09-27 11:24:38 +02:00 (Migrated from github.com)

(https://github.com/lbryio/lbry-android/issues/1151)

Hi there!
Because a lot of dimensions get reused, when I moved the dimensions file I used names like "large_1", "small_1", and "normal_1" for dimension values.

I tried this to cut down on repetitive values in the dimens file.

"small" values range between 0dp and 15dp
"normal" values range between 16dp to 119dp
"large" values are anything over 120dp (the largest is 480dp)

[PS, I submitted an application to LBRY for an android engineer position on September 9, 2021. This PR is part of my application process.]

PR Checklist

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I have checked that this PR does not introduce a breaking change
  • This PR introduces breaking changes and I have provided a detailed explanation below

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes)
  • Documentation changes
  • Other - Please describe:

Fixes

Issue Number: 1151

What is the current behavior?

What is the new behavior?

Other information

(https://github.com/lbryio/lbry-android/issues/1151) Hi there! Because a lot of dimensions get reused, when I moved the dimensions file I used names like "large_1", "small_1", and "normal_1" for dimension values. I tried this to cut down on repetitive values in the dimens file. "small" values range between 0dp and 15dp "normal" values range between 16dp to 119dp "large" values are anything over 120dp (the largest is 480dp) [PS, I submitted an application to LBRY for an android engineer position on September 9, 2021. This PR is part of my application process.] ## PR Checklist <!-- For the checkbox formatting to work properly, make sure there are no spaces on either side of the "x" --> Please check all that apply to this PR using "x": - [x] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged) - [ ] I have checked that this PR does not introduce a breaking change - [ ] This PR introduces breaking changes and I have provided a detailed explanation below ## PR Type What kind of change does this PR introduce? - [ ] Bugfix - [ ] Feature - [ ] Code style update (formatting) - [x] Refactoring (no functional changes) - [ ] Documentation changes - [ ] Other - Please describe: ## Fixes Issue Number: 1151 ## What is the current behavior? ## What is the new behavior? ## Other information <!-- If this PR contains a breaking change, please describe the impact and solution strategy for existing applications below. -->
kekkyojin commented 2021-09-27 11:53:08 +02:00 (Migrated from github.com)

For the next time, I suggest you to use a new branch for yout changes instead of commiting to your master branch

For the next time, I suggest you to use a new branch for yout changes instead of commiting to your master branch
veritaslogix commented 2021-09-28 19:15:37 +02:00 (Migrated from github.com)

Okay, thanks!

Okay, thanks!
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin veritaslogix/master:veritaslogix/master
git checkout veritaslogix/master

Merge

Merge the changes and update on Forgejo.
git checkout master
git merge --no-ff veritaslogix/master
git checkout master
git merge --ff-only veritaslogix/master
git checkout veritaslogix/master
git rebase master
git checkout master
git merge --no-ff veritaslogix/master
git checkout master
git merge --squash veritaslogix/master
git checkout master
git merge --ff-only veritaslogix/master
git checkout master
git merge veritaslogix/master
git push origin master
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-android#1219
No description provided.