question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

misalignment with windowBackground

See original GitHub issue

I set my app’s splash screen in my main style.xml as <item name="android:windowBackground">@drawable/splash</item>

and I use the same splash screen in react-native-splash-screen.

What I find when dialog splash screen’s center is 20px higher than main activity’s splash. I fixed by following rn-splash-screen’s approach and changed style to be

<style name="SplashScreen_SplashTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="android:windowBackground">@drawable/splash</item>
    </style>

and remove the code

mSplashDialog.setContentView(R.layout.launch_screen);

Is this a correct fix?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
evollucommented, Nov 15, 2017

it is going to be breaking change. @crazycodeboy shall I make a PR?

1reaction
vonovakcommented, Nov 15, 2017

@evollu are you planning to make a PR with the fix?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Splash screen with XML drawable as window background ...
Splash screen with XML drawable as window background misaligned ... app by using an XML drawable as a window background inside the theme....
Read more >
grupa ok - Dana DeGiulio
Misaligned ? Rather, realigned: Like Bellmer's poupée, into something not human, or differently human. Another painting offers cancellation, negatives: black ...
Read more >
Latest Help topics - Principle Community
Change preview window's background color? 0, 465, August 30, 2019. Looking for paid for classes in Principle.
Read more >
Routine Quality Control of Clinical Nuclear Medicine ... - NCBI
... and the QC procedures—checks of the photopeak energy window, background, ... In current SPECT systems, COR misalignment may be easily measured and ......
Read more >
Veteran's Voice (Window Background) [Alliances] - Chimera Gaming
Set: Alliances Type: Enchantment — Aura Rarity: Common Cost: {R} Enchant creature you controlTap enchanted creature: Target creature other than the creature ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found