GithubHelp home page GithubHelp logo

Comments (5)

garretyoder avatar garretyoder commented on May 13, 2024

This will compile work and function in a java project perfectly fine, infact the API will be the same, you just won't have access to optional arguments is all. If you're having issue with a specific api endpoint in Java, then I'd be happy to help.

from colorful.

bmbariah avatar bmbariah commented on May 13, 2024

For starters, I'm using this on my root Application class for initialization
Defaults defaults = new Defaults( ThemeColor.BLUE, ThemeColor.YELLOW, true, true, 0); initColorful(this, defaults);

but can't figure out what code to use to actually change color in my Activity color. Kindly assist

from colorful.

garretyoder avatar garretyoder commented on May 13, 2024

Read up on the wiki, it goes over how to do this. The api in Java is almost identical. Kotlin is a JVM language. you need to call initColorful.

Setting colors at runtime is also covered in the wiki.

Colorful().edit()
        .setPrimaryColor(ThemeColor.RED)
        .setAccentColor(ThemeColor.BLUE)
        .setDarkTheme(true)
        .setTranslucent(true)
        .apply(context:Context)

The only difference in java will be the ending ;.

from colorful.

bmbariah avatar bmbariah commented on May 13, 2024

Thanks. The callback was giving me errors so i set it to null.

from colorful.

Naguchennai avatar Naguchennai commented on May 13, 2024

how you fixed that callback problem?

from colorful.

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.