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

Fix #1914: Added text based styles #1915

Merged
merged 6 commits into from
Sep 30, 2020
Merged

Fix #1914: Added text based styles #1915

merged 6 commits into from
Sep 30, 2020

Conversation

rt4914
Copy link
Contributor

@rt4914 rt4914 commented Sep 29, 2020

Explanation

Fix #1914

The current UI contains a lot of common views and therefore we should define those common styles in styles.xml file.
The styles should be defined for following items as a start and can be added more as we start updating the UI.

Screenshot 2020-09-29 at 11 15 23 AM

Note: I have not added style for BUTTON because we already have StateButtonActive.

Also, these are just the starter styles, as we move to the UI part we should focus on creating common styles which can be used at multiple places.

Checklist

  • The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • The PR explanation includes the words "Fixes #bugnum: ..." (or "Fixes part of #bugnum" if the PR only partially fixes an issue).
  • The PR follows the style guide.
  • The PR does not contain any unnecessary auto-generated code from Android Studio.
  • The PR is made from a branch that's not called "develop".
  • The PR is made from a branch that is up-to-date with "develop".
  • The PR's branch is based on "develop" and not on any other branch.
  • The PR is assigned to an appropriate reviewer in both the Assignees and the Reviewers sections.

@rt4914
Copy link
Contributor Author

rt4914 commented Sep 29, 2020

@anandwana001 @MohamedMedhat1998 @Sarthak2601

Please have a look at the description and code. This is important as you will also be reviewing PRs related to UI changes and these things will get used more often now.

Copy link
Contributor

@anandwana001 anandwana001 left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks @rt4914

@aggarwalpulkit596 aggarwalpulkit596 removed their assignment Sep 29, 2020
@anandwana001 anandwana001 removed their assignment Sep 29, 2020
Copy link
Contributor

@Sarthak2601 Sarthak2601 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @rt4914 :)

@rt4914
Copy link
Contributor Author

rt4914 commented Sep 29, 2020

@aggarwalpulkit596 Can you please resolve comments if both queries are answered?

@rt4914
Copy link
Contributor Author

rt4914 commented Sep 30, 2020

Merging this now but @MohamedMedhat1998 feel free to have a look and leave comment.

@rt4914 rt4914 merged commit a447910 into develop Sep 30, 2020
@rt4914 rt4914 deleted the ui-styles branch September 30, 2020 07:00
Copy link
Contributor

@MohamedMedhat1998 MohamedMedhat1998 left a comment

Choose a reason for hiding this comment

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

I have left a comment below, PTAL.
I also have one question, why do we have to use both android:fontFamily and fontFamily?

Comment on lines +235 to +239
<style name="Caption" parent="TextView.Common1">
<item name="android:fontFamily">sans-serif-medium</item>
<item name="android:textSize">14sp</item>
<item name="fontFamily">sans-serif-medium</item>
</style>
Copy link
Contributor

Choose a reason for hiding this comment

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

According to #1914 description, this should be sans-serif not sans-serif-medium

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.

Create text based styles in styles.xml
5 participants