-
Notifications
You must be signed in to change notification settings - Fork 521
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. |
@manan1979 Please provide an explanation of what your PR will do (with names of files you're changing, what you plan to change in each file, etc.). If it looks good, we can assign you to this issue. Thanks! |
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 |
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: