-
Notifications
You must be signed in to change notification settings - Fork 529
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
All warnings in "Usability:Typography", "Usability:Icons", and "Usability" categories #5194
Comments
@Rd4dev, per #5169 (comment), could you please list some of the borderless buttons that need to be changed? We can consider creating a theme or a style that is applied globally. For text capitalization, we use sentence case in buttons, not lowercase or uppercase. |
@BenHenning, do we want to create per hdpi image assets for this repository? see commit: Rd4dev@f6b21fe? If not, we need to supress this lint check. I am also concerned that replacing ... and - instances in Arabic translations with unicode may make it difficult for translators to understand the strings. |
@adhiamboperes The warning about the borderless button emerged in the XML File -> The lint warning regarding capitalization suggested that the standard Android convention for "Ok" is "OK" (tip: use '@android:string/ok' instead). In accordance with the sentence case used in oppia-android's coding practices, I can suppress this warning by using the following code snippet: |
Since the buttons here are test class buttons, your original proposed approach should be okay...no need to theme them. |
HDPI are fine to add for everything except our baked-in lesson thumbnails (mostly since those are going to go away as soon as we can remove them), but aside from that we may need to suppress the warning until such time that we can remove those images. Perhaps we can file a follow-up issue to do that work once it's understood what's involved? Re: the |
@BenHenning
|
Assigning @BenHenning for follow up. |
Sorry, missed this. Thanks @Rd4dev that helps. I think we can go ahead and make the suggested Unicode changes. Those characters should show up correctly in Translatewiki, and thus hopefully not confuse our translators. Just to check: @adhiamboperes why were you specifically concerned for Arabic translations? |
@BenHenning, my concern was that the unicode may not show up correctly on translatewiki. Per your comment, this may not be a concern. |
…sability" categories (#5196) <!-- READ ME FIRST: Please fill in the explanation section below and check off every point from the Essential Checklist! --> ## Explanation <!-- - Explain what your PR does. If this PR fixes an existing bug, please include - "Fixes #bugnum:" in the explanation so that GitHub can auto-close the issue - when this PR is merged. --> Fixes #5194 [part of #5182] Fixes all warning in "Usability" category caused by - **Borderless Buttons :** Fixed by introducing `style="?android:attr/buttonBarButtonStyle"` to the borderless buttons - **OK text capitalization :** Fixed by suppressing the lint warnings for `ButtonCase` and `Typos` - **Ellipsis/Hyphen unicode replacement :** Fixed by introducing unicode representations (under review) - **Image in density drawable folder :** Fixed by creating seperate density images (under review) - **Text size too small :** Fixed by upscaling text size to `12sp` - **To incorporate Autofill :** Fixed by incorporating `autofillHints` to the EditText ## ScreenShot ![Before After Usability Lint Issues](https://github.com/oppia/oppia-android/assets/122200035/5a7037f5-ca22-482a-a0f3-8af2bfc8b75c) ## Essential Checklist <!-- Please tick the relevant boxes by putting an "x" in them. --> - [x] The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".) - [x] Any changes to [scripts/assets](https://github.com/oppia/oppia-android/tree/develop/scripts/assets) files have their rationale included in the PR explanation. - [x] The PR follows the [style guide](https://github.com/oppia/oppia-android/wiki/Coding-style-guide). - [x] The PR does not contain any unnecessary code changes from Android Studio ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#undo-unnecessary-changes)). - [x] The PR is made from a branch that's **not** called "develop" and is up-to-date with "develop". - [x] The PR is **assigned** to the appropriate reviewers ([reference](https://github.com/oppia/oppia-android/wiki/Guidance-on-submitting-a-PR#clarification-regarding-assignees-and-reviewers-section)). --------- Co-authored-by: Adhiambo Peres <[email protected]> Co-authored-by: Ben Henning <[email protected]>
Description
We would like to fix all the remaining lint issues on Oppia Android in the "Usability:Typography", "Usability:Icons", and "Usability" categories.
Steps To Reproduce
Run the following command from a terminal in a checked-out Oppia Android repo:
./gradlew :app:lint
Expected Behavior
Running the command above should not show any errors in this category
The text was updated successfully, but these errors were encountered: