-
Notifications
You must be signed in to change notification settings - Fork 527
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 #1000 : Update the color of status bar in various screens #1023
Conversation
@rt4914 @nikitamarysolomanpvt
Can you please help me out. Thanks :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very nice implementation. I have suggested some changes. Also, HintsAnd Solution is missing this change.
For viewing hints follow these steps:
- Start
What is Fraction?
exploration. - Click on
Continue
till you reach your first question. - In first question, select first option twice as it would be an incorrect answer. wait for 10 secs and in you will see blue box on bottom-left, open it, this screen is for HintsAndSolution.
Thanks.
app/src/main/java/org/oppia/app/onboarding/OnboardingFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
I have replied above for Hints. |
@SayantanBanerjee16 Please mention the mock link or sheet link in PR for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rt4914 @nikitamarysolomanpvt Addressed all the comments. Introduced camelCase colorID and Kdoc also. Hints and Solution Dialogs Screenshot:- PTAL. Thanks :) |
@SayantanBanerjee16 Please click resolve conversation after addressing comments. |
@nikitamarysolomanpvt All the pending conversations are Done and resolved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check it in kitkat seems not working.
@SayantanBanerjee16 Check this in kitkat and see how much work do we need to fix this. If it can be fixed in this PR itself then its great. |
So change of status bar color can be done on versions above LOLLIPOP and application of dark icon themes can be done from above MARSHMELLO. For KITKAT, I approached a method from a stack overflow answer using a github library but although it does draw color to system bar, it is getting overlapped with other screen contents. |
Yes, this solution is not appropriate as it is overlapping on other views. You should try some other solutions for this. |
@rt4914 Sorry but am unable to find any solution linked to applying color to status bar in Pre- Lollipop versions. I have reverted the previous introduced code for KITKAT. |
@nikitamarysolomanpvt PTAL. Thanks. |
@SayantanBanerjee16 try https://stackoverflow.com/questions/22192291/how-to-change-the-status-bar-color-in-android/26215844#26215844 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except the pre lollipop (Kitkat) issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, also I have filed an issue to track this. #1042
Explanation
Fixes #1000 :
Step1) Assigned colors from spreadsheets to color.xml
Step2) Created a Utility method where the update of Status Bar color take place
Step3) Called that Utility method from various places as required.
Spreadsheet :
https://docs.google.com/spreadsheets/d/1XphP6nWoUdOZn9pY2kdgfqMWfJjMfKMb98MXM5rp2HY/edit#gid=0
https://xd.adobe.com/view/e8aa4198-3940-47f9-514a-f41cc54457f6-9e9b/
Checklist