小编Sin*_*yuk的帖子

Android L Ripple Effect - 如何在我的搜索栏上禁用拇指的涟漪效果?

我正在设计我的自定义搜索栏.我想让拇指透明,但它仍然有涟漪效应.有人有一些建议吗?

android seekbar ripple

5
推荐指数
1
解决办法
3852
查看次数

如果没有 @Inject 构造函数或 @Provides- 或 @Produces- 注解的方法,则无法提供 Retrofit

我现在正在学习 Dagger 2,在没有代码的情况下解释问题对我来说太痛苦了,所以让我先列出我所有的模块、组件等:


应用程序类

public class App extends Application {

private ApiComponent mApiComponent = null;
private AppComponent mAppComponent = null;

public ApiComponent getApiComponent() {
    if (mApiComponent == null) {
        // Dagger%COMPONENT_NAME%
        mApiComponent = DaggerApiComponent.builder()
                // list of modules that are part of this component need to be created here too
                .appModule(new AppModule(this)) // This also corresponds to the name of your module: %component_name%Module
                .apiModule(new ApiModule(this))
                .build();

    }
    return mApiComponent;
}

public AppComponent getAppComponent() {
    if (mAppComponent == null) {
        // …
Run Code Online (Sandbox Code Playgroud)

android dependency-injection dagger retrofit dagger-2

5
推荐指数
1
解决办法
5510
查看次数