Giter Club home page Giter Club logo

Comments (3)

JessYanCoding avatar JessYanCoding commented on September 28, 2024

#249

from androidautosize.

DysaniazzZ avatar DysaniazzZ commented on September 28, 2024

跟这个 case 不太一样,我是想在 ContentProvider 初始化的。不过我想把这些三方库合并到一个 androidx.startup.InitializationProvider 来初始化。现在的问题是在我自己的初始化里是调用不了 AutoSizeConfig.init() 的,因为 init 方法是默认作用域。
不过我可以新建一个同名包下的类,来做个 workaround:

package me.jessyan.autosize;

import android.app.Application;

public class AutoSizeUtil {
    public static void init(Application app) {
        AutoSizeConfig.getInstance().init(app);
    }
}

from androidautosize.

hezhipengzipp avatar hezhipengzipp commented on September 28, 2024

AutoSize.checkAndInit(this); 这个是静态的

from androidautosize.

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.