-
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
Splash Screen Stretched #2652
Comments
Hi , i want to work on this issue |
@anshbajpai |
Yeah, I have signed the CLA now. |
@anshbajpai Suggesting to fill the Contributor survey as well to get an onboarding mentor assigned to get started with the contribution. |
@anandwana001 I have completed the survey now |
unassigning as no further update. |
I would like to work on this. Assign to me plz. |
It doesn't seem like @backpackerdeveloper is still working on this issue. Note to other devs: We agreed that the approach taken in #5147 is fine, and there are comments on the PR that need to be addressed for the solution to be complete. Note: You need to have Bazel set up and running in order to resolve this. |
Hi Team, I hope you're doing well. I've encountered an issue related to converting dp to sdp in our Android project. After some research, I found a solution that involves using the "sdp" library to make our layout dimensions more adaptable across different screen sizes and resolutions. To implement this solution, I propose the following changes: Added "sdp" Library: in app-level build.gradle add the following dependency Updated the Layout XML: in the splash_activity.xml file change the width and height as following
Thanks, |
@Cyclotron17, the approach is sound. But as per my previous comment, you also need to add the dependency to bazel, and I have linked a way to do it. |
Sure thing, will be adding that as well |
Hey @anandwana001, Can You Please Assign This Issue To Me. |
@TanishMoral11, assigned. |
Hey @adhiamboperes , I want to share the approach I'm planning to take for this issue, and I would appreciate your feedback on whether it is correct: splash_image.xml: A background color (@color/oppiaPrimaryLight) splash_page.xml: styles.xml: Can you please confirm if this approach is correct, or suggest any changes I should make? Thank you! |
@TanishMoral11, I think splash_page is a vector that is generated a green bg + @drawable/full_oppia_logo. It maybe thage you need to completely replace the splash_page with the new drawable you describe. Could you please try it out and let us know. |
@adhiamboperes PTAL #5555 |
…le and updated styles (oppia#5559) Fixes oppia#2652: This PR aims to enhance the splash screen implementation by making the following changes: - **splash_image.xml**: Created a new layer-list drawable that includes a background color (`@color/oppiaPrimaryLight`) and centers the splash image (`@drawable/splash_page`). - **splash_page.xml**: Modified the path data for the splash image and removed the old clip-path to ensure proper rendering. - **styles.xml**: Updated the `SplashScreenTheme` to reference the new `splash_image` drawable and set `adjustViewBounds` to true, allowing for better handling of different screen sizes. These changes are intended to improve the visual consistency and responsiveness of the splash screen across various devices. ## Essential Checklist - [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` 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)). Before : https://github.com/user-attachments/assets/161eb1ca-57b1-4b63-829a-de41f1b99702 After : https://github.com/user-attachments/assets/fcd480ff-aabd-4fe3-9887-b9bf50b276ac --------- Co-authored-by: Adhiambo Peres <[email protected]>
Describe the bug
Splash screen is displayed when a user opens the app, on small screen devices the splash screen is working as expected, but on large screen devices, the splash screen is getting stretched and doesn't work as expected.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The splash screen should be displayed in the same aspect ratio as needed.
Screenshots
[Note: Also reported in #3193 -- see additional videos in that issue.]
Expected Behaviour
Actual Behaviour
Device
The logo should be fixed as per device width:
The text was updated successfully, but these errors were encountered: