GithubHelp home page GithubHelp logo

Theme issue about beagle HOT 5 CLOSED

pandulapeter avatar pandulapeter commented on May 26, 2024
Theme issue

from beagle.

Comments (5)

pandulapeter avatar pandulapeter commented on May 26, 2024

That's a pretty good pattern and I'm doing the same thing on a project where Beagle is added. The circumstances are a bit different and I didn't encounter this issue; I'm investigating this right now and will update the example project if I find something.

Anyway, there is a quick fix. You should specify the theme for Beagle when you initialize it:

Beagle.imprint( application = this, appearance = Appearance(themeResourceId = R.style.YourTheme) )

from beagle.

pandulapeter avatar pandulapeter commented on May 26, 2024

Feel free to close the issue if the solution I mentioned fixes it :)

from beagle.

Shusshu avatar Shusshu commented on May 26, 2024

I already did that but it uses the theme for the drawer part but the main screen background is still using the StartupTheme windowBackground

from beagle.

pandulapeter avatar pandulapeter commented on May 26, 2024

I've just updated the example app to include a splash screen (check it out, it's part of this repo) and cannot reproduce your issue. Here's what I did:

  • Create a Splash theme (with a different background) and set it for the Application in the Manifest.
  • Set each Activity's theme in the onCreate() method, before calling the super implementation.

You can see all these changes here.

As far as I know, this is the cleanest implementation for splash screens (without introduing artificial startup delays) and can't see any problem with the library's behavior. Please let me know how your implementation differs. If what I'm suggesting is suitable for your app, it might fix your other issue as well.

from beagle.

pandulapeter avatar pandulapeter commented on May 26, 2024

Please note that if you remove Beagle's custom theme from my code, it will still take the Activity's theme not the Splash theme, as expected. I really don't see how changing the root of the layout messes up your Activity theme, so it has to be some other issue... Let me know what you find!

from beagle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.