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

Using styles xml #112

Merged
merged 5 commits into from
Nov 16, 2018
Merged

Using styles xml #112

merged 5 commits into from
Nov 16, 2018

Conversation

perlajarillo
Copy link
Contributor

Related to #20: Make more use of styles.xml rather than formatting every view.

  • Making use of styles.xml rather than formatting every view.
  • Including dimen resources instead hardcoding them.

@nickoneill nickoneill requested a review from dektar October 14, 2018 22:39
@nickoneill
Copy link
Member

Thanks @perlajarillo! I'll find someone on the android side to review this shortly

@perlajarillo
Copy link
Contributor Author

No problem @nickoneill! Please let me know if some changes are required.

@dektar
Copy link
Collaborator

dektar commented Oct 16, 2018

Hi, I can take a look at this soon, hopefully this evening. Sorry for the delay -- I was unavailable this weekend!

Copy link
Collaborator

@dektar dektar left a comment

Choose a reason for hiding this comment

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

This is super awesome! I only found one place where the UI appears different and I looked at many (perhaps not all) of the views.

I do have some comments around what belongs in styles.xml vs what doesn't.

I'm also wondering whether we should do something about the lint errors in styles.xml that many attributes require APIs higher than the minimum API. We could suppress these or just not worry about it at the moment. What do you think?

5calls/app/src/main/res/layout/activity_about.xml Outdated Show resolved Hide resolved
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/background_color"
>
android:background="@color/background_color">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Normally I like to wrap the closing > or /> in the XML to the next line, to reduce diffs when adding new lines to the XML.

You don't have to do this but I'm just mentioning it as an optional comment!

5calls/app/src/main/res/layout/activity_issue.xml Outdated Show resolved Hide resolved
5calls/app/src/main/res/layout/activity_rep_call.xml Outdated Show resolved Hide resolved
5calls/app/src/main/res/layout/issue_view.xml Outdated Show resolved Hide resolved
5calls/app/src/main/res/layout/rep_list_view.xml Outdated Show resolved Hide resolved
5calls/app/src/main/res/layout/rep_list_view.xml Outdated Show resolved Hide resolved
5calls/app/src/main/res/layout/nav_header.xml Outdated Show resolved Hide resolved
5calls/app/src/main/res/values/styles.xml Outdated Show resolved Hide resolved
@perlajarillo
Copy link
Contributor Author

Hi @dektar , thank you for the feedback, I will work in the improvements.

@perlajarillo
Copy link
Contributor Author

Hi @dektar . I have completed the changes you suggested. In my personal opinion you don't need to worry about the attributes that require APIs higher than the minimum API for now.

I have reviewed once more all the views but please let me know if I forgot something.

Copy link
Collaborator

@dektar dektar left a comment

Choose a reason for hiding this comment

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

Thanks! Just one more comment and I think it'll be ready to submit.

<TextView
style="@style/aboutParagraphTextStyle"
android:text="@string/rate_us_prompt" />
<!-- wasn't in next btn <item name="android:layout_margin">@dimen/layout_margin_button</item>-->
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you resolve or remove this comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I forgot to remove it, but now it is gone.

Removing unnecessary comment.
@dektar
Copy link
Collaborator

dektar commented Nov 14, 2018

Thanks. Do you want to try to resolve the conflicts with the base branch?

@perlajarillo
Copy link
Contributor Author

@dektar I resolved the conflicts. I thinks this PR is ready to go, but let me know if something else is required.

@dektar dektar merged commit 4378968 into 5calls:master Nov 16, 2018
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